Activate mypy for directv (#55963)
* Activate mypy for directv. * Activate mypy for directv.pull/56248/head
parent
ddfe94187e
commit
53d5a59257
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = []
|
||||
|
|
3
mypy.ini
3
mypy.ini
|
@ -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
|
||||
|
||||
|
|
|
@ -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.*",
|
||||
|
|
Loading…
Reference in New Issue