mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-06-21 01:26:30 +00:00
Minor fixes to quality scale examples (#2536)
This commit is contained in:
parent
c9c63ca119
commit
006feeda9a
@ -35,7 +35,7 @@ class MySensor(SensorEntity):
|
||||
manufacturer="My Company",
|
||||
model="My Sensor",
|
||||
model_id="ABC-123",
|
||||
via_device={(DOMAIN, device.hub_id)},
|
||||
via_device=(DOMAIN, device.hub_id),
|
||||
)
|
||||
```
|
||||
|
||||
|
@ -52,7 +52,7 @@ class MyCoordinator(DataUpdateCoordinator[dict[str, MyDevice]]):
|
||||
device_id=device.id,
|
||||
remove_config_entry_id=self.config_entry.entry_id,
|
||||
)
|
||||
self.previous_devices = current_devices
|
||||
self.previous_devices = current_devices
|
||||
return data
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user