Skip to content

Commit ea05129

Browse files
Remove debug print statements and update translation for binary sensor
1 parent 9e88997 commit ea05129

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

custom_components/calendar_event/binary_sensor.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,13 @@ async def async_added_to_hass(self) -> None:
9999
async def _state_changed(self, event: Event) -> None:
100100
"""Handle calendar entity state changes."""
101101
if event.data.get("entity_id") == self._calendar_entity_id:
102-
print(event)
103102
await self._update_state()
104103

105104
async def _update_state(self) -> None:
106105
"""Update the binary sensor state based on calendar events."""
107106

108107
calendar_state = self._hass.states.get(self._calendar_entity_id)
109108

110-
print(calendar_state)
111-
112109
if calendar_state is None:
113110
self._attr_is_on = False
114111
self._attr_extra_state_attributes.update(

custom_components/calendar_event/translations/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"summary": "Summary"
1111
},
1212
"data_description": {
13-
"name": "A friendly name for this binary sensor.",
1413
"calendar_entity_id": "The calendar entity to monitor for events.",
1514
"summary": "The calendar event summary text to match."
1615
}

0 commit comments

Comments
 (0)