Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 17, 2024
1 parent 0743372 commit 325b8b8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions custom_components/nyc311/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The NYC 311 Public Services Calendar integration."""

from __future__ import annotations

from datetime import timedelta
Expand Down
5 changes: 2 additions & 3 deletions custom_components/nyc311/base_device.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Base for NYC311 entities."""

from __future__ import annotations

from homeassistant.core import callback
Expand Down Expand Up @@ -35,9 +36,7 @@ def __init__(

def _get_icon(self, active_exception: bool) -> str:
"""Get icon for a given service / state."""
return (
f"{SERVICE_ICONS[self._calendar_entry.service_profile.service_type]}{'' if active_exception else '-off'}"
)
return f"{SERVICE_ICONS[self._calendar_entry.service_profile.service_type]}{'' if active_exception else '-off'}"

async def async_added_to_hass(self) -> None:
"""Register callbacks."""
Expand Down
1 change: 1 addition & 0 deletions custom_components/nyc311/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Binary sensor API entity."""

from __future__ import annotations

from datetime import date, datetime
Expand Down
1 change: 1 addition & 0 deletions custom_components/nyc311/calendar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Binary sensor calendar entity."""

from __future__ import annotations

import datetime
Expand Down
1 change: 1 addition & 0 deletions custom_components/nyc311/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for NYC 311 Public Services Calendar integration."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/nyc311/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implements 'Next Exception' sensors."""

from __future__ import annotations

import logging
Expand Down

0 comments on commit 325b8b8

Please sign in to comment.