mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-09-29 04:37:27 +02:00
Fix Home Assistant Cannot Deserialize Models
This commit is contained in:
parent
1d72da6ba1
commit
2f499c71d1
@ -49,10 +49,10 @@ class BinarySensorState(EntityState):
|
|||||||
# ==================== COVER ====================
|
# ==================== COVER ====================
|
||||||
@attr.s
|
@attr.s
|
||||||
class CoverInfo(EntityInfo):
|
class CoverInfo(EntityInfo):
|
||||||
assumed_state = attr.ib(type=bool)
|
assumed_state = attr.ib(type=bool, default=False)
|
||||||
supports_position = attr.ib(type=bool)
|
supports_position = attr.ib(type=bool, default=False)
|
||||||
supports_tilt = attr.ib(type=bool)
|
supports_tilt = attr.ib(type=bool, default=False)
|
||||||
device_class = attr.ib(type=str)
|
device_class = attr.ib(type=str, default='')
|
||||||
|
|
||||||
|
|
||||||
class LegacyCoverState(enum.IntEnum):
|
class LegacyCoverState(enum.IntEnum):
|
||||||
@ -146,7 +146,7 @@ class SensorState(EntityState):
|
|||||||
@attr.s
|
@attr.s
|
||||||
class SwitchInfo(EntityInfo):
|
class SwitchInfo(EntityInfo):
|
||||||
icon = attr.ib(type=str)
|
icon = attr.ib(type=str)
|
||||||
assumed_state = attr.ib(type=bool)
|
assumed_state = attr.ib(type=bool, default=False)
|
||||||
|
|
||||||
|
|
||||||
@attr.s
|
@attr.s
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@
|
|||||||
"""aioesphomeapi setup script."""
|
"""aioesphomeapi setup script."""
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
VERSION = '2.0.0'
|
VERSION = '2.0.1'
|
||||||
PROJECT_NAME = 'aioesphomeapi'
|
PROJECT_NAME = 'aioesphomeapi'
|
||||||
PROJECT_PACKAGE_NAME = 'aioesphomeapi'
|
PROJECT_PACKAGE_NAME = 'aioesphomeapi'
|
||||||
PROJECT_LICENSE = 'MIT'
|
PROJECT_LICENSE = 'MIT'
|
||||||
|
Loading…
Reference in New Issue
Block a user