mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-11-13 21:10:30 +00:00
Minor fixes to quality scale examples (#2536)
This commit is contained in:
@@ -35,7 +35,7 @@ class MySensor(SensorEntity):
|
|||||||
manufacturer="My Company",
|
manufacturer="My Company",
|
||||||
model="My Sensor",
|
model="My Sensor",
|
||||||
model_id="ABC-123",
|
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,
|
device_id=device.id,
|
||||||
remove_config_entry_id=self.config_entry.entry_id,
|
remove_config_entry_id=self.config_entry.entry_id,
|
||||||
)
|
)
|
||||||
self.previous_devices = current_devices
|
self.previous_devices = current_devices
|
||||||
return data
|
return data
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user