Reorganize mysensors (#15123)

* Move mysensors.py to package

* Move mysensors component to package

* Split code into multiple modules.

* Update coveragerc
This commit is contained in:
Martin Hjelmare 2018-06-25 13:58:16 +02:00 committed by Pascal Vizeli
parent 05924a2868
commit 3893d8a876
14 changed files with 753 additions and 715 deletions

View file

@ -23,13 +23,13 @@ async def async_setup_scanner(hass, config, async_see, discovery_info=None):
id(device.gateway), device.node_id, device.child_id,
device.value_type)
async_dispatcher_connect(
hass, mysensors.SIGNAL_CALLBACK.format(*dev_id),
hass, mysensors.const.SIGNAL_CALLBACK.format(*dev_id),
device.async_update_callback)
return True
class MySensorsDeviceScanner(mysensors.MySensorsDevice):
class MySensorsDeviceScanner(mysensors.device.MySensorsDevice):
"""Represent a MySensors scanner."""
def __init__(self, async_see, *args):