Commit graph

216 commits

Author SHA1 Message Date
Bas Nijholt
2b0eaff884 validate options 2020-09-23 12:17:51 +02:00
Bas Nijholt
575b81cbc5 rename FAKE_NONE to None 2020-09-20 23:00:15 +02:00
Bas Nijholt
ee607bc60b use FAKE_NONE 2020-09-20 22:54:45 +02:00
Bas Nijholt
355f88bf8f add comment 2020-09-20 22:53:24 +02:00
Bas Nijholt
71cd8f7385 style 2020-09-20 22:44:14 +02:00
Bas Nijholt
0ed8ab41c0 fix most of the settings by hardcoding 'none' 2020-09-20 20:49:13 +02:00
Bas Nijholt
f8c1a50107 convert strings to timedeltas and datetimes 2020-09-20 20:21:17 +02:00
Bas Nijholt
b37e006ba8 add semi working version with positive_time_dict 2020-09-20 19:59:13 +02:00
Bas Nijholt
f778f45590 remove backticks from strings.json 2020-09-20 18:38:53 +02:00
Bas Nijholt
a18a312ea9 styling 2020-09-20 18:38:01 +02:00
Bas Nijholt
d63abb4d28 commit working version but not with all options 2020-09-20 18:33:36 +02:00
Bas Nijholt
8d8a409a20 add _ALLOWED_ORDERS check 2020-09-19 12:41:12 +02:00
Bas Nijholt
edfaedba3c use globals 2020-09-19 12:24:15 +02:00
Bas Nijholt
9593bca7a8 simplify _calc_percent 2020-09-19 12:18:50 +02:00
Bas Nijholt
aea2e83a20 cleanup unused imports 2020-09-19 11:35:28 +02:00
Bas Nijholt
9d06be0883 WIP 2020-09-19 11:10:54 +02:00
Bas Nijholt
909584abbf small fixes 2020-09-16 11:06:15 +02:00
Bas Nijholt
954e022860 unify config options flow and YAML schema 2020-09-16 00:03:58 +02:00
Bas Nijholt
48c16ff637 unify configs 2020-09-15 23:33:19 +02:00
Bas Nijholt
c4bb689f27 update config_flow.py 2020-09-15 23:21:53 +02:00
Bas Nijholt
7b79096abc simplification and don't add trackers when lights is [] 2020-09-15 22:59:54 +02:00
Bas Nijholt
4870b7c405 add missing await 2020-09-15 21:48:51 +02:00
Bas Nijholt
b0b11d0652 Revert "use events"
This reverts commit 0b1be003e9.
2020-09-15 21:27:33 +02:00
Bas Nijholt
0b1be003e9 use events 2020-09-15 21:27:15 +02:00
Bas Nijholt
276d991c1c unpack light groups 2020-09-15 21:05:21 +02:00
Bas Nijholt
d4fcaa404d colortemp -> color_temp 2020-09-15 21:03:01 +02:00
Bas Nijholt
4898cbcaff split _adjust_lights 2020-09-15 20:40:24 +02:00
Bas Nijholt
6e5668ea3b remove lights_brightness, lights_mired, lights_rgb, lights_xy with "lights" 2020-09-15 20:29:59 +02:00
Bas Nijholt
f444a8a142 need to change the name of folder to get strings.json working 2020-09-13 10:46:33 +02:00
Bas Nijholt
1331b792db small changes 2020-09-13 10:46:08 +02:00
Bas Nijholt
6964d08df0 add config flow basics 2020-09-12 23:25:36 +02:00
Bas Nijholt
667c645ccf BRIGHT -> BRIGHTNESS 2020-09-12 14:37:38 +02:00
Bas Nijholt
cf414925d8 change default interval to 90 2020-09-12 14:33:57 +02:00
Bas Nijholt
4f0b0645c1 use self.unsub_tracker instead of _state 2020-09-12 14:32:43 +02:00
Bas Nijholt
47a4db229f divide percent by 100 and fix updating of attrs 2020-09-12 14:14:05 +02:00
Bas Nijholt
2b891c5521 simplify calculation 2020-09-12 13:22:54 +02:00
Bas Nijholt
fe6ed9fb2c get times from astral in UTC 2020-09-12 13:18:15 +02:00
Bas Nijholt
36f82e8670 comments and style 2020-09-12 13:03:26 +02:00
Bas Nijholt
b7245ec219 no need to cast to a different type 2020-09-12 12:55:29 +02:00
Bas Nijholt
7f99426466 define CONF_TRANSITION 2020-09-12 12:34:16 +02:00
Bas Nijholt
8dc0b59993 remove elevation 2020-09-12 12:31:10 +02:00
Bas Nijholt
b0e89002cd rename ct -> mired 2020-09-12 12:30:26 +02:00
Bas Nijholt
99490b4ad5 switch to a simpler setup 2020-09-12 12:21:40 +02:00
Bas Nijholt
8cd6a255cd add transition=self._initial_transition 2020-09-11 21:02:32 +02:00
Bas Nijholt
79944c9468 use astral location from HA 2020-09-11 20:58:43 +02:00
Bas Nijholt
4aff61d8cb move to single switch 2020-09-11 20:31:51 +02:00
Bas Nijholt
b16d69b1c9 switch doesn't need to have the profile as attribute 2020-09-11 19:51:01 +02:00
Bas Nijholt
6a0f12ab2d setup a sensor per profile 2020-09-11 19:51:01 +02:00
Bas Nijholt
c18cb47cbf fix doc-string 2020-09-11 19:51:01 +02:00
Bas Nijholt
24f422ccf6 make switch use profile 2020-09-11 19:51:01 +02:00