mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Address NextDNS late review (#74503)
* Fix coordinator type * Remove pylint disable
This commit is contained in:
parent
c4855909fa
commit
8ccb008834
@ -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,
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user