Преглед изворни кода

Update label for enable_automatic_mode_switching setting to make it clearer what its behavior is

Christopher Mullins пре 6 година
родитељ
комит
a9e9506087
3 измењених фајлова са 12 додато и 5 уклоњено
  1. 2 2
      dist/index.html.gz.h
  2. 6 0
      test/remote/spec/settings_spec.rb
  3. 4 3
      web/src/js/script.js

Разлика између датотеке није приказан због своје велике величине
+ 2 - 2
dist/index.html.gz.h


+ 6 - 0
test/remote/spec/settings_spec.rb

@@ -207,5 +207,11 @@ RSpec.describe 'Settings' do
 
       expect(settings['group_state_fields']).to eq([])
     end
+
+    it 'for enable_automatic_mode_switching, default should be false' do
+      settings = @client.get('/settings')
+
+      expect(settings['enable_automatic_mode_switching']).to eq(false)
+    end
   end
 end

+ 4 - 3
web/src/js/script.js

@@ -302,9 +302,10 @@ var UI_FIELDS = [ {
     tab: "tab-mqtt"
   }, {
     tag:   "enable_automatic_mode_switching",
-    friendly: "Enable automatic mode switching",
-    help: "For RGBWW bulbs (using RGB+CCT or FUT089), enables automatic switching between modes in order to affect changes to " +
-    "temperature and saturation when otherwise it would not work",
+    friendly: "Switch to previous mode after saturation/color commands",
+    help: "For RGBWW bulbs (using RGB+CCT or FUT089), commands that adjust color saturation or white temperature "
+      + "will switch into the appropriate mode, make the change, and switch back to previous mode.  WARNING: this "
+      + "feature is not compatible with 'color' commands.",
     type: "option_buttons",
     options: {
       true: 'Enable',