mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Implement suggested area in lutron_caseta (#45941)
This commit is contained in:
parent
500cb17298
commit
749883dc62
@ -229,6 +229,7 @@ async def _async_register_button_devices(
|
||||
|
||||
dr_device = device_registry.async_get_or_create(
|
||||
name=device["leap_name"],
|
||||
suggested_area=device["leap_name"].split("_")[0],
|
||||
manufacturer=MANUFACTURER,
|
||||
config_entry_id=config_entry_id,
|
||||
identifiers={(DOMAIN, device["serial"])},
|
||||
@ -344,6 +345,7 @@ class LutronCasetaDevice(Entity):
|
||||
return {
|
||||
"identifiers": {(DOMAIN, self.serial)},
|
||||
"name": self.name,
|
||||
"suggested_area": self._device["name"].split("_")[0],
|
||||
"manufacturer": MANUFACTURER,
|
||||
"model": f"{self._device['model']} ({self._device['type']})",
|
||||
"via_device": (DOMAIN, self._bridge_device["serial"]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user