Display person component as occupancy sensor HomeKit (#23451)

This commit is contained in:
chmielowiec authored and cdce8p committed 2019-04-28 18:38:21 +02:00
1 parent 37badbbf09
commit 54c34bb224
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -110,7 +110,7 @@ def get_accessory(hass, driver, state, aid, config):
if state.domain == 'alarm_control_panel':
a_type = 'SecuritySystem'
elif state.domain == 'binary_sensor' or state.domain == 'device_tracker':
elif state.domain in ('binary_sensor', 'device_tracker', 'person'):
a_type = 'BinarySensor'
elif state.domain == 'climate':