Address NextDNS late review (#74503)
* Fix coordinator type * Remove pylint disable
This commit is contained in:
parent
c4855909fa
commit
8ccb008834
2 changed files with 3 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue