fix autodiscovery
This commit is contained in:
1 parent
87c138c559
commit
86ccf26a1a
7 files changed
+13
-4
No files matched your search
@@ -41,6 +41,8 @@ HM_UNIT_HA_CAST = {
|
||||
|
||||
def setup_platform(hass, config, add_callback_devices, discovery_info=None):
|
||||
"""Setup the platform."""
|
||||
if discovery_info:
|
||||
config = discovery_info
|
||||
return homematic.setup_hmdevice_entity_helper(HMSensor,
|
||||
config,
|
||||
add_callback_devices)
|
||||
|
||||
Reference in new issue
Block a user