有个bug,defaultzone默认好像是Nonetype,会报错
File "/home/homeassistant/.homeassistant/custom_components/xiaoai.py", line 215, in getZone
if 'customize_zone' in attributes and len(attributes['customize_zone']) > 0 and len(attributes['customize_zone']) >= len(zone) and query.find(attributes['customize_zone']) != -1:
TypeError: object of type 'NoneType' has no len()