Skip to content

Commit 9c2a025

Browse files
Add identifiers attribute to DeviceInfo (#250)
* Add identifiers attribute to DeviceInfo Fixes #248
1 parent aef02b6 commit 9c2a025

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

custom_components/remote_homeassistant/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"zeroconf": [
1414
"_home-assistant._tcp.local."
1515
],
16-
"version": "3.9",
16+
"version": "3.10",
1717
"iot_class": "local_push"
1818
}

custom_components/remote_homeassistant/sensor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from homeassistant.helpers.dispatcher import async_dispatcher_connect
44
from homeassistant.helpers.entity import DeviceInfo, Entity
55

6-
from .const import CONF_ENTITY_PREFIX, CONF_SECURE
6+
from .const import DOMAIN, CONF_ENTITY_PREFIX, CONF_SECURE
77

88

99
async def async_setup_entry(hass, config_entry, async_add_entities):
@@ -28,6 +28,7 @@ def __init__(self, config_entry):
2828
self._attr_device_info = DeviceInfo(
2929
name="Home Assistant",
3030
configuration_url=f"{proto}://{host}:{port}",
31+
identifiers={(DOMAIN, f"remote_{self._attr_unique_id}")},
3132
)
3233

3334
@property

0 commit comments

Comments
 (0)