Small tweaks (#32946)
This commit is contained in:
parent
05abf37046
commit
661570dfad
3 changed files with 8 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
|||
"domain": "obihai",
|
||||
"name": "Obihai",
|
||||
"documentation": "https://www.home-assistant.io/integrations/obihai",
|
||||
"requirements": ["pyobihai==1.2.0"],
|
||||
"requirements": ["pyobihai==1.2.1"],
|
||||
"dependencies": [],
|
||||
"codeowners": ["@dshokouhi"]
|
||||
}
|
||||
|
|
|
@ -59,8 +59,9 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||
for key in services:
|
||||
sensors.append(ObihaiServiceSensors(pyobihai, serial, key))
|
||||
|
||||
for key in line_services:
|
||||
sensors.append(ObihaiServiceSensors(pyobihai, serial, key))
|
||||
if line_services is not None:
|
||||
for key in line_services:
|
||||
sensors.append(ObihaiServiceSensors(pyobihai, serial, key))
|
||||
|
||||
for key in call_direction:
|
||||
sensors.append(ObihaiServiceSensors(pyobihai, serial, key))
|
||||
|
@ -136,8 +137,9 @@ class ObihaiServiceSensors(Entity):
|
|||
|
||||
services = self._pyobihai.get_line_state()
|
||||
|
||||
if self._service_name in services:
|
||||
self._state = services.get(self._service_name)
|
||||
if services is not None:
|
||||
if self._service_name in services:
|
||||
self._state = services.get(self._service_name)
|
||||
|
||||
call_direction = self._pyobihai.get_call_direction()
|
||||
|
||||
|
|
|
@ -1432,7 +1432,7 @@ pynx584==0.4
|
|||
pynzbgetapi==0.2.0
|
||||
|
||||
# homeassistant.components.obihai
|
||||
pyobihai==1.2.0
|
||||
pyobihai==1.2.1
|
||||
|
||||
# homeassistant.components.ombi
|
||||
pyombi==0.1.10
|
||||
|
|
Loading…
Add table
Reference in a new issue