Skip to content

Commit

Permalink
Fix entity_id- Remove domain from unique ID (#147)
Browse files Browse the repository at this point in the history
* remove domain from unique ID

* bump version
  • Loading branch information
tybritten authored Sep 24, 2024
1 parent c760e80 commit 505e29e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/ical/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"icalendar==5.0.7"
],
"ssdp": [],
"version": "1.7.0",
"version": "1.7.1",
"zeroconf": []
}
2 changes: 1 addition & 1 deletion custom_components/ical/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __init__(
@property
def unique_id(self) -> str:
"""Return the unique ID of the sensor."""
return f"{DOMAIN}_{self.ical_events.name.lower()}_event_{self._event_number}"
return f"{self.ical_events.name.lower()}_event_{self._event_number}"

@property
def name(self):
Expand Down
2 changes: 1 addition & 1 deletion ical_updater.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sensor.ical": {
"updated_at": "2024-09-23",
"version": "1.7.0",
"version": "1.7.1",
"local_location": "/custom_components/ics/__init__.py",
"remote_location": "https://raw.githubusercontent.com/tybritten/ical-sensor-homeassistant/master/__init__.py",
"visit_repo": "https://github.com/tybritten/ical-sensor-homeassistant/",
Expand Down

0 comments on commit 505e29e

Please sign in to comment.