Fix Home Assistant Cannot Deserialize Models

This commit is contained in:
Otto Winter 2019-04-19 16:22:50 +02:00
parent 1d72da6ba1
commit 2f499c71d1
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
2 changed files with 6 additions and 6 deletions

View File

@ -49,10 +49,10 @@ class BinarySensorState(EntityState):
# ==================== COVER ====================
@attr.s
class CoverInfo(EntityInfo):
assumed_state = attr.ib(type=bool)
supports_position = attr.ib(type=bool)
supports_tilt = attr.ib(type=bool)
device_class = attr.ib(type=str)
assumed_state = attr.ib(type=bool, default=False)
supports_position = attr.ib(type=bool, default=False)
supports_tilt = attr.ib(type=bool, default=False)
device_class = attr.ib(type=str, default='')
class LegacyCoverState(enum.IntEnum):
@ -146,7 +146,7 @@ class SensorState(EntityState):
@attr.s
class SwitchInfo(EntityInfo):
icon = attr.ib(type=str)
assumed_state = attr.ib(type=bool)
assumed_state = attr.ib(type=bool, default=False)
@attr.s

View File

@ -2,7 +2,7 @@
"""aioesphomeapi setup script."""
from setuptools import find_packages, setup
VERSION = '2.0.0'
VERSION = '2.0.1'
PROJECT_NAME = 'aioesphomeapi'
PROJECT_PACKAGE_NAME = 'aioesphomeapi'
PROJECT_LICENSE = 'MIT'