Add supports_stop to CoverInfo (#276)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Alexander Momchilov 2023-02-12 17:41:21 -05:00 committed by GitHub
parent 1af3c0ae1a
commit c62a0eff3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 198 additions and 196 deletions

View File

@ -283,6 +283,7 @@ message ListEntitiesCoverResponse {
bool disabled_by_default = 9; bool disabled_by_default = 9;
string icon = 10; string icon = 10;
EntityCategory entity_category = 11; EntityCategory entity_category = 11;
bool supports_stop = 12;
} }
enum LegacyCoverState { enum LegacyCoverState {

File diff suppressed because one or more lines are too long

View File

@ -161,6 +161,7 @@ class BinarySensorState(EntityState):
@dataclass(frozen=True) @dataclass(frozen=True)
class CoverInfo(EntityInfo): class CoverInfo(EntityInfo):
assumed_state: bool = False assumed_state: bool = False
supports_stop: bool = False
supports_position: bool = False supports_position: bool = False
supports_tilt: bool = False supports_tilt: bool = False
device_class: str = "" device_class: str = ""