zha: Set default binary_sensor state to false (#14553)

pull/14566/head
damarco 2018-05-21 01:14:18 +02:00 committed by Russell Cloran
parent b489519930
commit ee7e59fe68
1 changed files with 2 additions and 2 deletions

View File

@ -203,8 +203,8 @@ class Switch(zha.Entity, BinarySensorDevice):
def __init__(self, **kwargs):
"""Initialize Switch."""
super().__init__(**kwargs)
self._state = True
self._level = 255
self._state = False
self._level = 0
from zigpy.zcl.clusters import general
self._out_listeners = {
general.OnOff.cluster_id: self.OnOffListener(self),