mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 02:19:31 +00:00
Change refactor structure
* Make a flatter one level inheritance, with MySensorsLight as parent with four children, one per light type. * Break out helper methods. One per plain light, dimmer and RGB/RGBW children and per update, turn_on and turn_off, nine in total. Put these in the parent. * Call the helper methods as needed from the child methods update, turn_on and turn_off. * Change name of MySensorsLightLight to MySensorsLightPlain. * Fix module docstrings according to pep257. * Change name of color util method from rgb_hex_to_list to rgb_hex_to_rgb_list. * Add unit tests for rgb_hex_to_rgb_list.
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
"""
|
||||
homeassistant.components.sensor.mysensors.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Support for MySensors sensors.
|
||||
|
||||
For more details about this platform, please refer to the documentation at
|
||||
|
||||
Reference in New Issue
Block a user