Button device class (#146)

This commit is contained in:
Jesse Hills 2021-11-30 16:53:22 +13:00 committed by GitHub
parent bdfa9d3c13
commit 3494f804c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 37 deletions

View File

@ -992,6 +992,7 @@ message ListEntitiesButtonResponse {
string icon = 5;
bool disabled_by_default = 6;
EntityCategory entity_category = 7;
string device_class = 8;
}
message ButtonCommandRequest {
option (id) = 62;

File diff suppressed because one or more lines are too long

View File

@ -588,7 +588,7 @@ class SirenState(EntityState):
# ==================== BUTTON ====================
@dataclass(frozen=True)
class ButtonInfo(EntityInfo):
pass
device_class: str = ""
# ==================== INFO MAP ====================