mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Add child devices from hubs to generated list of supported devices (#898)
Updates generate_supported hook to include child devices of hubs in the list of supported devices.
This commit is contained in:
@@ -639,6 +639,10 @@ class SmartDevice(Bulb, Fan, Device):
|
||||
return DeviceType.Bulb
|
||||
if "SWITCH" in device_type:
|
||||
return DeviceType.WallSwitch
|
||||
if "SENSOR" in device_type:
|
||||
return DeviceType.Sensor
|
||||
if "ENERGY" in device_type:
|
||||
return DeviceType.Thermostat
|
||||
_LOGGER.warning("Unknown device type, falling back to plug")
|
||||
return DeviceType.Plug
|
||||
|
||||
|
Reference in New Issue
Block a user