From adfbcfa704bfc2da44e77a1d8705a51852c43b12 Mon Sep 17 00:00:00 2001 From: Shay Levy Date: Mon, 8 Nov 2021 21:47:01 +0200 Subject: [PATCH] Add Shelly Gen1 beta_version attribute to firmware update sensor (#59359) --- homeassistant/components/shelly/binary_sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/shelly/binary_sensor.py b/homeassistant/components/shelly/binary_sensor.py index 69f5f0e4440..4a918506b00 100644 --- a/homeassistant/components/shelly/binary_sensor.py +++ b/homeassistant/components/shelly/binary_sensor.py @@ -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, ),