-
- Downloads
Add switch platform to bosch_shc integration (#62315)
* Add support for switch platform. * Add untested files to .coveragerc. * Differ between Light Switch and Smart Plug. Bumped to boschshcpy==0.2.27 * Removed duplicated code. Fixed suggestions from code review. * Fixed pylint errors * Fix pylint issue. * Add property statement * Fixed wrong attribute access * Apply suggestions from code review Co-authored-by:epenet <6771947+epenet@users.noreply.github.com> * Move switch function to base class. Changes from code review. * Apply suggestions from code review Co-authored-by:
epenet <6771947+epenet@users.noreply.github.com> * Merged camera switch into SHCSwitch class * Type hint * Removed deprecated sensor entities in switch device. Added routing switch entity. * Apply suggestions from code review Co-authored-by:
epenet <6771947+epenet@users.noreply.github.com> * Icon and EntityCategory as class attributes Co-authored-by:
epenet <6771947+epenet@users.noreply.github.com>
Showing
- .coveragerc 1 addition, 0 deletions.coveragerc
- homeassistant/components/bosch_shc/__init__.py 1 addition, 1 deletionhomeassistant/components/bosch_shc/__init__.py
- homeassistant/components/bosch_shc/sensor.py 24 additions, 0 deletionshomeassistant/components/bosch_shc/sensor.py
- homeassistant/components/bosch_shc/switch.py 235 additions, 0 deletionshomeassistant/components/bosch_shc/switch.py
Loading
Please register or sign in to comment