mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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)
|
||||
|
||||
|
||||
class NextDnsSensor(CoordinatorEntity, SensorEntity):
|
||||
class NextDnsSensor(CoordinatorEntity[NextDnsUpdateCoordinator], SensorEntity):
|
||||
"""Define an NextDNS sensor."""
|
||||
|
||||
coordinator: NextDnsUpdateCoordinator
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
coordinator: NextDnsUpdateCoordinator,
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user