From eefb9406c2bf8254c6692604ddf5c7eda5c94747 Mon Sep 17 00:00:00 2001 From: Tom Schneider Date: Fri, 26 Apr 2019 05:44:38 +0200 Subject: [PATCH] restore battery_quantity for zha devices (#23320) --- homeassistant/components/zha/core/channels/general.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/zha/core/channels/general.py b/homeassistant/components/zha/core/channels/general.py index b5509b1d559..031eb2464da 100644 --- a/homeassistant/components/zha/core/channels/general.py +++ b/homeassistant/components/zha/core/channels/general.py @@ -219,3 +219,5 @@ class PowerConfigurationChannel(ZigbeeChannel): 'battery_percentage_remaining', from_cache=from_cache) await self.get_attribute_value( 'battery_voltage', from_cache=from_cache) + await self.get_attribute_value( + 'battery_quantity', from_cache=from_cache)