Update to group component to properly handle zone changes in tracked devices (#2631)
* pep8 fixes for group and test * update to pass linting * docstring fix. * reduced length of docstring on test.
This commit is contained in:
1 parent
bce4be88dc
commit
6a3c5b093b
2 files changed
+18
-3
No files matched your search
@@ -304,8 +304,9 @@ class Group(Entity):
|
||||
if gr_on is None:
|
||||
return
|
||||
|
||||
if tr_state is None or (gr_state == gr_on and
|
||||
tr_state.state == gr_off):
|
||||
if tr_state is None or ((gr_state == gr_on and
|
||||
tr_state.state == gr_off) or
|
||||
tr_state.state not in (gr_on, gr_off)):
|
||||
if states is None:
|
||||
states = self._tracking_states
|
||||
|
||||
|
||||
Reference in new issue
Block a user