Bump Environment Canada to 0.7.0 (#120686)

This commit is contained in:
Glenn Waters 2024-06-27 13:08:18 -04:00 committed by GitHub
parent e446875c7e
commit b9e01b9253
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 3 additions and 15 deletions

View File

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/environment_canada", "documentation": "https://www.home-assistant.io/integrations/environment_canada",
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["env_canada"], "loggers": ["env_canada"],
"requirements": ["env-canada==0.6.3"] "requirements": ["env-canada==0.7.0"]
} }

View File

@ -19,7 +19,6 @@ from homeassistant.const import (
PERCENTAGE, PERCENTAGE,
UV_INDEX, UV_INDEX,
UnitOfLength, UnitOfLength,
UnitOfPrecipitationDepth,
UnitOfPressure, UnitOfPressure,
UnitOfSpeed, UnitOfSpeed,
UnitOfTemperature, UnitOfTemperature,
@ -114,14 +113,6 @@ SENSOR_TYPES: tuple[ECSensorEntityDescription, ...] = (
native_unit_of_measurement=PERCENTAGE, native_unit_of_measurement=PERCENTAGE,
value_fn=lambda data: data.conditions.get("pop", {}).get("value"), value_fn=lambda data: data.conditions.get("pop", {}).get("value"),
), ),
ECSensorEntityDescription(
key="precip_yesterday",
translation_key="precip_yesterday",
device_class=SensorDeviceClass.PRECIPITATION,
native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS,
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda data: data.conditions.get("precip_yesterday", {}).get("value"),
),
ECSensorEntityDescription( ECSensorEntityDescription(
key="pressure", key="pressure",
translation_key="pressure", translation_key="pressure",

View File

@ -52,9 +52,6 @@
"pop": { "pop": {
"name": "Chance of precipitation" "name": "Chance of precipitation"
}, },
"precip_yesterday": {
"name": "Precipitation yesterday"
},
"pressure": { "pressure": {
"name": "Barometric pressure" "name": "Barometric pressure"
}, },

View File

@ -816,7 +816,7 @@ enocean==0.50
enturclient==0.2.4 enturclient==0.2.4
# homeassistant.components.environment_canada # homeassistant.components.environment_canada
env-canada==0.6.3 env-canada==0.7.0
# homeassistant.components.season # homeassistant.components.season
ephem==4.1.5 ephem==4.1.5

View File

@ -673,7 +673,7 @@ energyzero==2.1.0
enocean==0.50 enocean==0.50
# homeassistant.components.environment_canada # homeassistant.components.environment_canada
env-canada==0.6.3 env-canada==0.7.0
# homeassistant.components.season # homeassistant.components.season
ephem==4.1.5 ephem==4.1.5