File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed
custom_components/calendar_event Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments