Address NextDNS late review (#74503)

* Fix coordinator type

* Remove pylint disable
This commit is contained in:
Maciej Bieniek 2022-07-06 14:29:26 +02:00 committed by GitHub
parent c4855909fa
commit 8ccb008834
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View file

@ -294,11 +294,9 @@ async def async_setup_entry(
async_add_entities(sensors)
class NextDnsSensor(CoordinatorEntity, SensorEntity):
class NextDnsSensor(CoordinatorEntity[NextDnsUpdateCoordinator], SensorEntity):
"""Define an NextDNS sensor."""
coordinator: NextDnsUpdateCoordinator
def __init__(
self,
coordinator: NextDnsUpdateCoordinator,

View file

@ -10,9 +10,8 @@ from homeassistant.core import HomeAssistant, callback
@callback
def async_register( # pylint:disable=unused-argument
hass: HomeAssistant,
register: system_health.SystemHealthRegistration,
def async_register(
hass: HomeAssistant, register: system_health.SystemHealthRegistration
) -> None:
"""Register system health callbacks."""
register.async_register_info(system_health_info)