Activate mypy for directv (#55963)

* Activate mypy for directv.

* Activate mypy for directv.
pull/56248/head
jan iversen 2021-09-15 07:58:04 +02:00 committed by GitHub
parent ddfe94187e
commit 53d5a59257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 8 deletions

View File

@ -1,4 +1,5 @@
"""Constants for the DirecTV integration."""
from typing import Final
DOMAIN = "directv"
@ -7,7 +8,7 @@ ATTR_MEDIA_CURRENTLY_RECORDING = "media_currently_recording"
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"

View File

@ -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 = []
@ -98,7 +98,6 @@ class DIRECTVMediaPlayer(DIRECTVEntity, MediaPlayerEntity):
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

View File

@ -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 = []

View File

@ -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

View File

@ -25,7 +25,6 @@ IGNORED_MODULES: Final[list[str]] = [
"homeassistant.components.demo.*",
"homeassistant.components.denonavr.*",
"homeassistant.components.dhcp.*",
"homeassistant.components.directv.*",
"homeassistant.components.doorbird.*",
"homeassistant.components.enphase_envoy.*",
"homeassistant.components.entur_public_transport.*",