-
- Downloads
Shelly migrate to update entity (#78305)
* Add update entity * fixes * fixes * change to CONFIG catogory * return latest version if no update available * fixes * Remove firmware binary_sensors and buttons * import Callable from collections * remove ota_update tests * Update homeassistant/components/shelly/update.py Co-authored-by:Shay Levy <levyshay1@gmail.com> * simplify * fix mypy * Create test_update.py * fix isort * add progress support * fix styling * fix update_tests * fix styling * do not exclude shelly update test * bring coverage to 100% * snake case * snake case * change str(x) to cast(str, x) * simplify tests * further simplify tests * Split MOCK_SHELLY_COAP and MOCK_SHELLY_RPC * fix issort * fix status test * fix isort * run python3 -m script.hassfest Co-authored-by:
Shay Levy <levyshay1@gmail.com>
Showing
- homeassistant/components/shelly/__init__.py 2 additions, 0 deletionshomeassistant/components/shelly/__init__.py
- homeassistant/components/shelly/binary_sensor.py 0 additions, 26 deletionshomeassistant/components/shelly/binary_sensor.py
- homeassistant/components/shelly/button.py 0 additions, 15 deletionshomeassistant/components/shelly/button.py
- homeassistant/components/shelly/update.py 236 additions, 0 deletionshomeassistant/components/shelly/update.py
- tests/components/shelly/conftest.py 37 additions, 6 deletionstests/components/shelly/conftest.py
- tests/components/shelly/test_button.py 5 additions, 67 deletionstests/components/shelly/test_button.py
- tests/components/shelly/test_diagnostics.py 3 additions, 9 deletionstests/components/shelly/test_diagnostics.py
- tests/components/shelly/test_update.py 101 additions, 0 deletionstests/components/shelly/test_update.py
homeassistant/components/shelly/update.py
0 → 100644
tests/components/shelly/test_update.py
0 → 100644
Please register or sign in to comment