mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
fix lint
This commit is contained in:
parent
21feff5fd8
commit
b1736994b7
@ -258,7 +258,7 @@ class AndroidIPCamEntity(Entity):
|
|||||||
def device_state_attributes(self):
|
def device_state_attributes(self):
|
||||||
"""Return the state attributes."""
|
"""Return the state attributes."""
|
||||||
state_attr = {}
|
state_attr = {}
|
||||||
if self._ipcam.status_data is not None:
|
if self._ipcam.status_data is None:
|
||||||
return state_attr
|
return state_attr
|
||||||
|
|
||||||
state_attr[ATTR_VID_CONNS] = \
|
state_attr[ATTR_VID_CONNS] = \
|
||||||
|
@ -50,9 +50,10 @@ class IPWebcamBinarySensor(AndroidIPCamEntity, BinarySensorDevice):
|
|||||||
"""True if the binary sensor is on."""
|
"""True if the binary sensor is on."""
|
||||||
return self._state
|
return self._state
|
||||||
|
|
||||||
def update(self):
|
@asyncio.coroutine
|
||||||
|
def async_update(self):
|
||||||
"""Retrieve latest state."""
|
"""Retrieve latest state."""
|
||||||
if self._ipcam.status_data not None:
|
if self._ipcam.status_data is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
container = self._ipcam.sensor_data.get(self._sensor)
|
container = self._ipcam.sensor_data.get(self._sensor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user