Skip to content

Commit 2ba9cb1

Browse files
brg468bdraco
authored andcommitted
Remove address info from Rachio calendar events (home-assistant#145896)
Co-authored-by: J. Nick Koston <[email protected]>
1 parent 25d1480 commit 2ba9cb1

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

homeassistant/components/rachio/calendar.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
from homeassistant.util import dt as dt_util
1717

1818
from .const import (
19-
KEY_ADDRESS,
2019
KEY_DURATION_SECONDS,
2120
KEY_ID,
22-
KEY_LOCALITY,
2321
KEY_PROGRAM_ID,
2422
KEY_PROGRAM_NAME,
2523
KEY_RUN_SUMMARIES,
@@ -65,7 +63,6 @@ def __init__(
6563
super().__init__(coordinator)
6664
self.base_station = base_station
6765
self._event: CalendarEvent | None = None
68-
self._location = coordinator.base_station[KEY_ADDRESS][KEY_LOCALITY]
6966
self._attr_translation_placeholders = {
7067
"base": coordinator.base_station[KEY_SERIAL_NUMBER]
7168
}
@@ -87,7 +84,6 @@ def event(self) -> CalendarEvent | None:
8784
end=dt_util.as_local(start_time)
8885
+ timedelta(seconds=int(event[KEY_TOTAL_RUN_DURATION])),
8986
description=valves,
90-
location=self._location,
9187
)
9288

9389
def _handle_upcoming_event(self) -> dict[str, Any] | None:
@@ -155,7 +151,6 @@ async def async_get_events(
155151
start=event_start,
156152
end=event_end,
157153
description=valves,
158-
location=self._location,
159154
uid=f"{run[KEY_PROGRAM_ID]}/{run[KEY_START_TIME]}",
160155
)
161156
event_list.append(event)

homeassistant/components/rachio/const.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@
7575
KEY_PROGRAM_NAME = "programName"
7676
KEY_PROGRAM_RUN_SUMMARIES = "valveProgramRunSummaries"
7777
KEY_TOTAL_RUN_DURATION = "totalRunDurationSeconds"
78-
KEY_ADDRESS = "address"
79-
KEY_LOCALITY = "locality"
8078
KEY_SKIP = "skip"
8179
KEY_SKIPPABLE = "skippable"
8280

0 commit comments

Comments
 (0)