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) async_add_entities(sensors)
class NextDnsSensor(CoordinatorEntity, SensorEntity): class NextDnsSensor(CoordinatorEntity[NextDnsUpdateCoordinator], SensorEntity):
"""Define an NextDNS sensor.""" """Define an NextDNS sensor."""
coordinator: NextDnsUpdateCoordinator
def __init__( def __init__(
self, self,
coordinator: NextDnsUpdateCoordinator, coordinator: NextDnsUpdateCoordinator,

View File

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