Remove additional self from update function in RainMachine (#18810)

This commit is contained in:
Aaron Bach 2018-11-29 14:47:41 -07:00 committed by GitHub
parent 4bc9e6dfe0
commit 6f7ff9a18a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ class RainMachineSensor(RainMachineEntity):
async def async_added_to_hass(self): async def async_added_to_hass(self):
"""Register callbacks.""" """Register callbacks."""
@callback @callback
def update(self): def update():
"""Update the state.""" """Update the state."""
self.async_schedule_update_ha_state(True) self.async_schedule_update_ha_state(True)