Address cleanup commentary for Guardian Paired Sensors (#41785)
This commit is contained in:
parent
e791946f00
commit
3a59f7c2b7
3 changed files with 6 additions and 5 deletions
|
@ -45,7 +45,8 @@ async def async_setup_entry(
|
|||
) -> None:
|
||||
"""Set up Guardian switches based on a config entry."""
|
||||
|
||||
async def add_new_paired_sensor(uid: str) -> None:
|
||||
@callback
|
||||
def add_new_paired_sensor(uid: str) -> None:
|
||||
"""Add a new paired sensor."""
|
||||
coordinator = hass.data[DOMAIN][DATA_COORDINATOR][entry.entry_id][
|
||||
API_SENSOR_PAIRED_SENSOR_STATUS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue