Skip to content

Commit

Permalink
Add identifiers attribute to DeviceInfo (#250)
Browse files Browse the repository at this point in the history
* Add identifiers attribute to DeviceInfo

Fixes #248
  • Loading branch information
lukas-hetzenecker authored Aug 17, 2023
1 parent aef02b6 commit 9c2a025
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/remote_homeassistant/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"zeroconf": [
"_home-assistant._tcp.local."
],
"version": "3.9",
"version": "3.10",
"iot_class": "local_push"
}
3 changes: 2 additions & 1 deletion custom_components/remote_homeassistant/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity import DeviceInfo, Entity

from .const import CONF_ENTITY_PREFIX, CONF_SECURE
from .const import DOMAIN, CONF_ENTITY_PREFIX, CONF_SECURE


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

@property
Expand Down

0 comments on commit 9c2a025

Please sign in to comment.