core/tests/components/dynalite
Ziv 39408ab240
Add cover platform to Dynalite (#32594)
* lib version

* unit-test refactoring

* added type hints

* added cover

* added test to see that consts have the same value as library consts

* Update tests/components/dynalite/test_init.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

* removed trigger template

* Update homeassistant/components/dynalite/__init__.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/dynalite/const.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

* removed CONF_TRIGGER from const
corrected type hints - not clear why mypy didn't catch it

* conversion of the config to library CONFs

* moved to use the value since it should come from the library

* taking CONF_HOST from homeassistant.const instead of module const

* use dict.get
removed leftover log

* force device_class to be from homeassistant consts

* move dict.get to inline

* removed CONF from values
changed "channelcover" to "channel_cover"

* moved some CONF values out of const.py and taking them from homeassistant.const

* verifying that device class is a valid HA device class

* moved shutter to home assistant const

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-02 20:26:36 +02:00
..
__init__.py
common.py Add cover platform to Dynalite (#32594) 2020-04-02 20:26:36 +02:00
test_bridge.py Add cover platform to Dynalite (#32594) 2020-04-02 20:26:36 +02:00
test_config_flow.py Add cover platform to Dynalite (#32594) 2020-04-02 20:26:36 +02:00
test_cover.py Add cover platform to Dynalite (#32594) 2020-04-02 20:26:36 +02:00
test_init.py Add cover platform to Dynalite (#32594) 2020-04-02 20:26:36 +02:00
test_light.py Refactor dynalite integration for multi-platform (#32335) 2020-03-01 22:44:24 +01:00
test_switch.py Add Dynalite switch platform (#32389) 2020-03-04 22:05:39 -08:00