-
- Downloads
LiteJet: Unit tests and new trigger options held_more_than and held_less_than. (#4473)
* LiteJet: Unit tests and new trigger options held_more_than and held_less_than. * Unit tests for the LiteJet component and associated platforms. Coverage is almost 100% -- just misses one line. * The automation LiteJet trigger returns an empty "removal" function to ensure the automation base is happy with it. The pylitejet library doesn't actually support a real removal. * The automation LiteJet trigger can detect hold time and act appropriately to support things like short tap or long hold. * LiteJet: Fix indent in unit test source code. * LiteJet: Fix test_include_switches_* unit tests on Python 3.5 * LiteJet: Remove wait for state existence from unit tests. Recent fixes to discovery make this no longer necessary.
Showing
- .coveragerc 0 additions, 3 deletions.coveragerc
- homeassistant/components/automation/litejet.py 60 additions, 3 deletionshomeassistant/components/automation/litejet.py
- tests/components/automation/test_litejet.py 251 additions, 0 deletionstests/components/automation/test_litejet.py
- tests/components/light/test_litejet.py 168 additions, 0 deletionstests/components/light/test_litejet.py
- tests/components/scene/test_litejet.py 64 additions, 0 deletionstests/components/scene/test_litejet.py
- tests/components/switch/test_litejet.py 142 additions, 0 deletionstests/components/switch/test_litejet.py
- tests/components/test_litejet.py 42 additions, 0 deletionstests/components/test_litejet.py
Loading
Please register or sign in to comment