Skip to content

Commit

Permalink
Merge pull request #53 from dala318/device_reg
Browse files Browse the repository at this point in the history
Fix Device registry
  • Loading branch information
dala318 committed Sep 27, 2024
2 parents 4860e1d + f044e4b commit 0426787
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion custom_components/nordpool_planner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,11 @@ def register_output_listener_entity(self, entity, conf_key="") -> None:
def get_device_info(self) -> DeviceInfo:
"""Get device info to group entities."""
return DeviceInfo(
identifiers={(DOMAIN, self._config.data[CONF_TYPE])},
identifiers={(DOMAIN, self._config.entry_id)},
name=self.name,
manufacturer="Nordpool",
entry_type=DeviceEntryType.SERVICE,
model="Forecast",
)

def input_changed(self, value):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/nordpool_planner/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "calculated",
"issue_tracker": "https://github.com/dala318/nordpool_planner/issues",
"requirements": [],
"version": "2.0.0"
"version": "2.0.4"
}
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
homeassistant

0 comments on commit 0426787

Please sign in to comment.