Use DeviceInfo Class H (#58276)
This commit is contained in:
parent
f176dc512c
commit
4a8e9df026
25 changed files with 110 additions and 103 deletions
|
@ -47,9 +47,9 @@ class GenericHueDevice(entity.Entity):
|
|||
"""
|
||||
return entity.DeviceInfo(
|
||||
identifiers={(HUE_DOMAIN, self.device_id)},
|
||||
name=self.primary_sensor.name,
|
||||
manufacturer=self.primary_sensor.manufacturername,
|
||||
model=(self.primary_sensor.productname or self.primary_sensor.modelid),
|
||||
name=self.primary_sensor.name,
|
||||
sw_version=self.primary_sensor.swversion,
|
||||
via_device=(HUE_DOMAIN, self.bridge.api.config.bridgeid),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue