We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 191d97d commit 585b85eCopy full SHA for 585b85e
1 file changed
drivers/SmartThings/matter-switch/src/init.lua
@@ -101,9 +101,7 @@ function SwitchLifecycleHandlers.device_init(driver, device)
101
if #device:get_endpoints(clusters.PowerSource.ID, {feature_bitmap = clusters.PowerSource.types.PowerSourceFeature.BATTERY}) == 0 then
102
device:set_field(fields.profiling_data.BATTERY_SUPPORT, fields.battery_support.NO_BATTERY, {persist = true})
103
end
104
- if device:get_field(fields.profiling_data.POWER_TOPOLOGY) == nil then
105
- switch_utils.handle_electrical_sensor_info(device)
106
- end
+ switch_utils.handle_electrical_sensor_info(device)
107
device:extend_device("subscribe", switch_utils.subscribe)
108
device:subscribe()
109
0 commit comments