Add Shelly Gen1 beta_version attribute to firmware update sensor (#59359)

pull/59380/head
Shay Levy 2021-11-08 21:47:01 +02:00 committed by GitHub
parent 4ac7dfc983
commit adfbcfa704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ REST_SENSORS: Final = {
extra_state_attributes=lambda status: {
"latest_stable_version": status["update"]["new_version"],
"installed_version": status["update"]["old_version"],
"beta_version": status["update"].get("beta_version", ""),
},
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
),