Address cleanup commentary for Guardian Paired Sensors (#41785)

This commit is contained in:
Aaron Bach 2020-10-13 14:01:10 -06:00 committed by GitHub
parent e791946f00
commit 3a59f7c2b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View file

@ -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