mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Update tesla_powerwall to 0.3.11 (#57112)
This commit is contained in:
parent
86852df2fc
commit
e66064fb3e
@ -1,5 +1,5 @@
|
|||||||
"""Support for powerwall binary sensors."""
|
"""Support for powerwall binary sensors."""
|
||||||
from tesla_powerwall import GridStatus
|
from tesla_powerwall import GridStatus, MeterType
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
DEVICE_CLASS_BATTERY_CHARGING,
|
DEVICE_CLASS_BATTERY_CHARGING,
|
||||||
@ -142,4 +142,8 @@ class PowerWallChargingStatusSensor(PowerWallEntity, BinarySensorEntity):
|
|||||||
def is_on(self):
|
def is_on(self):
|
||||||
"""Powerwall is charging."""
|
"""Powerwall is charging."""
|
||||||
# is_sending_to returns true for values greater than 100 watts
|
# is_sending_to returns true for values greater than 100 watts
|
||||||
return self.coordinator.data[POWERWALL_API_METERS].battery.is_sending_to()
|
return (
|
||||||
|
self.coordinator.data[POWERWALL_API_METERS]
|
||||||
|
.get_meter(MeterType.BATTERY)
|
||||||
|
.is_sending_to()
|
||||||
|
)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Tesla Powerwall",
|
"name": "Tesla Powerwall",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/powerwall",
|
"documentation": "https://www.home-assistant.io/integrations/powerwall",
|
||||||
"requirements": ["tesla-powerwall==0.3.10"],
|
"requirements": ["tesla-powerwall==0.3.11"],
|
||||||
"codeowners": ["@bdraco", "@jrester"],
|
"codeowners": ["@bdraco", "@jrester"],
|
||||||
"dhcp": [
|
"dhcp": [
|
||||||
{
|
{
|
||||||
|
@ -53,7 +53,8 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||||||
powerwalls_serial_numbers = powerwall_data[POWERWALL_API_SERIAL_NUMBERS]
|
powerwalls_serial_numbers = powerwall_data[POWERWALL_API_SERIAL_NUMBERS]
|
||||||
|
|
||||||
entities = []
|
entities = []
|
||||||
for meter in MeterType:
|
# coordinator.data[POWERWALL_API_METERS].meters holds all meters that are available
|
||||||
|
for meter in coordinator.data[POWERWALL_API_METERS].meters:
|
||||||
entities.append(
|
entities.append(
|
||||||
PowerWallEnergySensor(
|
PowerWallEnergySensor(
|
||||||
meter,
|
meter,
|
||||||
|
@ -2296,7 +2296,7 @@ temperusb==1.5.3
|
|||||||
# tensorflow==2.3.0
|
# tensorflow==2.3.0
|
||||||
|
|
||||||
# homeassistant.components.powerwall
|
# homeassistant.components.powerwall
|
||||||
tesla-powerwall==0.3.10
|
tesla-powerwall==0.3.11
|
||||||
|
|
||||||
# homeassistant.components.tensorflow
|
# homeassistant.components.tensorflow
|
||||||
# tf-models-official==2.3.0
|
# tf-models-official==2.3.0
|
||||||
|
@ -1306,7 +1306,7 @@ systembridge==2.1.0
|
|||||||
tellduslive==0.10.11
|
tellduslive==0.10.11
|
||||||
|
|
||||||
# homeassistant.components.powerwall
|
# homeassistant.components.powerwall
|
||||||
tesla-powerwall==0.3.10
|
tesla-powerwall==0.3.11
|
||||||
|
|
||||||
# homeassistant.components.toon
|
# homeassistant.components.toon
|
||||||
toonapi==0.2.1
|
toonapi==0.2.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user