Skip to content

Commit

Permalink
Activate mypy for directv (home-assistant#55963)
Browse files Browse the repository at this point in the history
* Activate mypy for directv.

* Activate mypy for directv.
  • Loading branch information
janiversen authored Sep 15, 2021
1 parent ddfe941 commit 53d5a59
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion homeassistant/components/directv/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for the DirecTV integration."""
from typing import Final

DOMAIN = "directv"

Expand All @@ -7,7 +8,7 @@
ATTR_MEDIA_RATING = "media_rating"
ATTR_MEDIA_RECORDED = "media_recorded"
ATTR_MEDIA_START_TIME = "media_start_time"
ATTR_VIA_DEVICE = "via_device"
ATTR_VIA_DEVICE: Final = "via_device"

CONF_RECEIVER_ID = "receiver_id"

Expand Down
3 changes: 1 addition & 2 deletions homeassistant/components/directv/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def async_setup_entry(
hass: HomeAssistant,
entry: ConfigEntry,
async_add_entities: AddEntitiesCallback,
) -> bool:
) -> None:
"""Set up the DirecTV config entry."""
dtv = hass.data[DOMAIN][entry.entry_id]
entities = []
Expand Down Expand Up @@ -98,7 +98,6 @@ def __init__(self, *, dtv: DIRECTV, name: str, address: str = "0") -> None:
self._attr_name = name
self._attr_device_class = DEVICE_CLASS_RECEIVER
self._attr_available = False
self._attr_assumed_state = None

self._is_recorded = None
self._is_standby = True
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/directv/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def async_setup_entry(
hass: HomeAssistant,
entry: ConfigEntry,
async_add_entities: AddEntitiesCallback,
) -> bool:
) -> None:
"""Load DirecTV remote based on a config entry."""
dtv = hass.data[DOMAIN][entry.entry_id]
entities = []
Expand Down
3 changes: 0 additions & 3 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1331,9 +1331,6 @@ ignore_errors = true
[mypy-homeassistant.components.dhcp.*]
ignore_errors = true

[mypy-homeassistant.components.directv.*]
ignore_errors = true

[mypy-homeassistant.components.doorbird.*]
ignore_errors = true

Expand Down
1 change: 0 additions & 1 deletion script/hassfest/mypy_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"homeassistant.components.demo.*",
"homeassistant.components.denonavr.*",
"homeassistant.components.dhcp.*",
"homeassistant.components.directv.*",
"homeassistant.components.doorbird.*",
"homeassistant.components.enphase_envoy.*",
"homeassistant.components.entur_public_transport.*",
Expand Down

0 comments on commit 53d5a59

Please sign in to comment.