Commit graph

104 commits

Author SHA1 Message Date
Bas Nijholt
c5e4486f00 simplify setting brightness 2020-08-27 23:32:32 +02:00
Bas Nijholt
5491c7dcf1 simplify color settings 2020-08-27 23:22:38 +02:00
Bas Nijholt
6050e99189 move lines into if statement 2020-08-27 23:18:04 +02:00
Bas Nijholt
2f5b92f80a fix variable d -> service_data 2020-08-27 22:23:31 +02:00
Bas Nijholt
be0e58c3f0 move comments 2020-08-25 19:14:02 +02:00
Bas Nijholt
c75b1238d8 simplify track_time_change setup 2020-08-25 19:12:37 +02:00
Bas Nijholt
b3e4834421 simplify time.replace calls 2020-08-25 19:06:00 +02:00
Bas Nijholt
0780879a0b simplify setup() 2020-08-25 19:02:18 +02:00
Bas Nijholt
2d064e5195 fix in calc_rgb 2020-08-25 18:59:04 +02:00
Bas Nijholt
1053e74956 don't assign variables but directly pass them 2020-08-25 18:55:33 +02:00
Bas Nijholt
5b98fedf12 black 2020-08-25 18:52:58 +02:00
Bas Nijholt
d2dda06802 remove unused import 2020-08-25 18:52:48 +02:00
Bas Nijholt
c0082175b6 simplify debug logging call 2020-08-25 18:52:23 +02:00
Bas Nijholt
3be5f44488 simplify calc_ct and calc_rgb 2020-08-25 18:46:52 +02:00
Bas Nijholt
643d69bbf8 do is sleep logging in is_sleep method 2020-08-25 18:45:10 +02:00
Bas Nijholt
3ea906ea2e use comment when inline 2020-08-25 18:43:07 +02:00
Bas Nijholt
8a49a6fe87 use extend instead of += 2020-08-25 18:41:58 +02:00
Bas Nijholt
38dc367c56 simplify adjust_lights even more 2020-08-25 18:39:13 +02:00
Bas Nijholt
34c4fdb71a don't run if statements that will never run 2020-08-25 18:30:08 +02:00
Bas Nijholt
e381d0c0e3 simplify conditions in adjust_lights 2020-08-25 18:27:48 +02:00
Bas Nijholt
97598cfaac reduce indentation of adjust_lights 2020-08-25 18:26:00 +02:00
Bas Nijholt
56a5a49f64 simplify calc_brightness 2020-08-25 18:23:12 +02:00
Bas Nijholt
8605578301 more simplifications 2020-08-25 18:21:48 +02:00
Bas Nijholt
5f1c7ad827 remove unused import 2020-08-25 18:18:46 +02:00
Bas Nijholt
ce7e08d824 fix last f-string 2020-08-25 18:18:21 +02:00
Bas Nijholt
26796a449d use contextlib.suppress 2020-08-25 18:17:16 +02:00
Bas Nijholt
5448caced2 use f-strings in logs 2020-08-25 18:16:20 +02:00
Bas Nijholt
f7119aebaf use 'is None' and 'is not None' 2020-08-25 18:10:41 +02:00
Bas Nijholt
9b8a4ad51f run black, pyupgrade, and isort 2020-08-25 18:08:33 +02:00
Clayton Nummer
6a919ae9da
Merge pull request #97 from claytonjn/dev 1.0.13
1.0.13
2020-06-11 13:12:55 -04:00
Clayton Nummer
ff4854e7b7 Version bump for master 2020-06-11 13:09:31 -04:00
Clayton Nummer
ca8f25ad2e
Merge pull request #92 from LEJOUI/master 1.0.13b
Update SwitchDevice to SwitchEntity
2020-06-03 21:06:11 -04:00
Clayton Nummer
976a35e109
Merge branch 'dev' into master 2020-06-03 21:05:42 -04:00
LJU
a2a1c45744
Update switch.py 2020-05-22 23:36:45 +02:00
LJU
836e2922a6
Update with try 2020-05-22 23:36:16 +02:00
LJU
5f3700343b
Update import
Update import and add switchdevice for earlier versions
2020-05-21 15:33:49 +02:00
LJU
d7c27cd107
Update SwitchDevice to SwitchEntity 2020-05-14 08:28:41 +02:00
LJU
eaa5c0e3dd
Update SwitchDevice to SwitchEntity 2020-05-14 08:26:29 +02:00
Clayton Nummer
498da0e0db Use actual timezone to fix configured sunrise/sunset 1.0.12b 2020-03-19 17:25:02 -04:00
Clayton Nummer
03718f0e3c Version bump for (deprecated) custom updater 2020-03-19 15:49:30 -04:00
Clayton Nummer
9e1d140e19 Use the same timezone for "now" time and configured lat/long 2020-03-19 15:48:52 -04:00
Clayton Nummer
4909fdbdd5
Merge pull request #76 from claytonjn/dev 1.0.11
Use HA defined VALID_TRANSITION for initial transition
2020-03-07 10:32:48 -05:00
Clayton Nummer
3fb9fcc9c3 Use HA defined VALID_TRANSITION for initial transition
rather than defining our own
2020-03-07 10:31:52 -05:00
Clayton Nummer
abe47adc86 Version bump for (deprecated) custom updater 2020-03-07 10:16:13 -05:00
Clayton Nummer
70f2f3a8ae
Merge pull request #75 from claytonjn/dev
Merge dev into master
2020-03-07 10:14:12 -05:00
Clayton Nummer
6c26f5dbe1 Version bump for (deprecated) custom updater 1.0.11b 2020-02-21 22:16:31 -05:00
Clayton Nummer
5e167bef82
Merge pull request #70 from mouth4war/init-trans
Initial transition configurable and defaulted
2020-02-21 22:11:21 -05:00
Clayton Nummer
61741f6501
Fix getting initial transition from config 2020-02-21 22:05:08 -05:00
mouth4war
05f98fa673
Initial transition configurable and defaulted 2020-02-20 15:22:07 +05:30
Clayton Nummer
50c6bdfd40
Merge pull request #69 from claytonjn/dev 1.0.10
1.0.10
2020-02-13 11:25:31 -05:00