Skip to content

Commit

Permalink
Fixing sensor name issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jampez77 committed Sep 24, 2024
1 parent 935fc94 commit 170213f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/premierinn/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"issue_tracker": "https://github.com/jampez77/PremierInn/issues",
"requirements": ["beautifulsoup4==4.12.3"],
"ssdp": [],
"version": "2024.9.5",
"version": "2024.9.6",
"zeroconf": []
}
2 changes: 1 addition & 1 deletion custom_components/premierinn/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(
self.entity_id = f"sensor.{DOMAIN}_{name}_{description.key}".lower()
self.attrs: dict[str, Any] = {}
self.entity_description = description
self.name = name
self.name = self.entity_description.name
self._state = None

def update_from_coordinator(self):
Expand Down

0 comments on commit 170213f

Please sign in to comment.