Skip to content

Commit

Permalink
Dont await None type
Browse files Browse the repository at this point in the history
  • Loading branch information
Miicroo authored Jun 4, 2023
1 parent 0183b5a commit a82ef0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/birthdays/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@ async def update_data(self, *_):
# Fire event if birthday is today
self.hass.bus.async_fire(event_type='birthday', event_data={'name': self._name, 'age': self._age_at_next_birthday})

await self.async_write_ha_state()
self.async_write_ha_state()
async_call_later(self.hass, self._get_seconds_until_midnight(), self.update_data)

0 comments on commit a82ef0e

Please sign in to comment.