Skip to content

Commit c414938

Browse files
puddlyTheJulianJES
andauthored
Bump ZHA to 0.0.80 (home-assistant#157311)
Co-authored-by: TheJulianJES <[email protected]>
1 parent f5b8ede commit c414938

File tree

8 files changed

+52
-7
lines changed

8 files changed

+52
-7
lines changed

homeassistant/components/zha/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ async def async_shutdown(_: Event) -> None:
253253
def update_config(event: Event) -> None:
254254
"""Handle Core config update."""
255255
zha_gateway.config.local_timezone = ZoneInfo(hass.config.time_zone)
256+
zha_gateway.config.country_code = hass.config.country
256257

257258
config_entry.async_on_unload(
258259
hass.bus.async_listen(EVENT_CORE_CONFIG_UPDATE, update_config)

homeassistant/components/zha/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
ATTR_POWER_SOURCE = "power_source"
2121
ATTR_QUIRK_APPLIED = "quirk_applied"
2222
ATTR_QUIRK_CLASS = "quirk_class"
23-
ATTR_QUIRK_ID = "quirk_id"
23+
ATTR_EXPOSES_FEATURES = "exposes_features"
2424
ATTR_ROUTES = "routes"
2525
ATTR_RSSI = "rssi"
2626
ATTR_SIGNATURE = "signature"

homeassistant/components/zha/helpers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
ATTR_CLUSTER_NAME,
131131
ATTR_DEVICE_TYPE,
132132
ATTR_ENDPOINT_NAMES,
133+
ATTR_EXPOSES_FEATURES,
133134
ATTR_IEEE,
134135
ATTR_LAST_SEEN,
135136
ATTR_LQI,
@@ -140,7 +141,6 @@
140141
ATTR_POWER_SOURCE,
141142
ATTR_QUIRK_APPLIED,
142143
ATTR_QUIRK_CLASS,
143-
ATTR_QUIRK_ID,
144144
ATTR_ROUTES,
145145
ATTR_RSSI,
146146
ATTR_SIGNATURE,
@@ -341,7 +341,7 @@ def device_info(self) -> dict[str, Any]:
341341
ATTR_NAME: self.device.name or ieee,
342342
ATTR_QUIRK_APPLIED: self.device.quirk_applied,
343343
ATTR_QUIRK_CLASS: self.device.quirk_class,
344-
ATTR_QUIRK_ID: self.device.quirk_id,
344+
ATTR_EXPOSES_FEATURES: self.device.exposes_features,
345345
ATTR_MANUFACTURER_CODE: self.device.manufacturer_code,
346346
ATTR_POWER_SOURCE: self.device.power_source,
347347
ATTR_LQI: self.device.lqi,
@@ -1370,6 +1370,7 @@ def create_zha_config(hass: HomeAssistant, ha_zha_data: HAZHAData) -> ZHAData:
13701370
device_overrides=overrides_config,
13711371
),
13721372
local_timezone=ZoneInfo(hass.config.time_zone),
1373+
country_code=hass.config.country,
13731374
)
13741375

13751376

homeassistant/components/zha/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"zha",
2222
"universal_silabs_flasher"
2323
],
24-
"requirements": ["zha==0.0.79"],
24+
"requirements": ["zha==0.0.80"],
2525
"usb": [
2626
{
2727
"description": "*2652*",

homeassistant/components/zha/strings.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@
318318
"valve_alarm": {
319319
"name": "Valve alarm"
320320
},
321+
"valve_state": {
322+
"name": "Valve state"
323+
},
321324
"water_leak": {
322325
"name": "Water leak"
323326
},
@@ -683,6 +686,9 @@
683686
"max_brightness": {
684687
"name": "Maximum brightness"
685688
},
689+
"max_cool_setpoint_limit": {
690+
"name": "Max cool setpoint limit"
691+
},
686692
"max_heat_setpoint_limit": {
687693
"name": "Max heat setpoint limit"
688694
},
@@ -707,6 +713,9 @@
707713
"min_brightness": {
708714
"name": "Minimum brightness"
709715
},
716+
"min_cool_setpoint_limit": {
717+
"name": "Min cool setpoint limit"
718+
},
710719
"min_heat_setpoint_limit": {
711720
"name": "Min heat setpoint limit"
712721
},
@@ -776,6 +785,9 @@
776785
"opening_duration": {
777786
"name": "Opening duration"
778787
},
788+
"outdoor_temperature": {
789+
"name": "Outdoor temperature"
790+
},
779791
"output_time": {
780792
"name": "Output time"
781793
},
@@ -955,6 +967,9 @@
955967
}
956968
},
957969
"select": {
970+
"actuator_type": {
971+
"name": "Actuator type"
972+
},
958973
"adaptation_run_command": {
959974
"name": "Adaptation run command"
960975
},
@@ -1060,6 +1075,9 @@
10601075
"heat_transfer_medium": {
10611076
"name": "Heat transfer medium"
10621077
},
1078+
"heater_type": {
1079+
"name": "Heater type"
1080+
},
10631081
"heating_emitter_type": {
10641082
"name": "Heating emitter type"
10651083
},
@@ -1120,6 +1138,9 @@
11201138
"on_led_color": {
11211139
"name": "On LED color"
11221140
},
1141+
"operating_mode": {
1142+
"name": "Operating mode"
1143+
},
11231144
"operation_mode": {
11241145
"name": "Operation mode"
11251146
},
@@ -1153,6 +1174,9 @@
11531174
"screen_orientation": {
11541175
"name": "Screen orientation"
11551176
},
1177+
"sensor_connection": {
1178+
"name": "Sensor connection"
1179+
},
11561180
"sensor_mode": {
11571181
"name": "Sensor mode"
11581182
},
@@ -1183,6 +1207,9 @@
11831207
"switch_type": {
11841208
"name": "Switch type"
11851209
},
1210+
"temperature_display_mode": {
1211+
"name": "Temperature display mode"
1212+
},
11861213
"thermostat_application": {
11871214
"name": "Thermostat application"
11881215
},
@@ -1192,6 +1219,9 @@
11921219
"valve_orientation": {
11931220
"name": "Valve orientation"
11941221
},
1222+
"valve_status_led": {
1223+
"name": "Valve status LED"
1224+
},
11951225
"viewing_direction": {
11961226
"name": "Viewing direction"
11971227
},
@@ -1284,9 +1314,15 @@
12841314
"energy_produced_ph_c": {
12851315
"name": "Energy produced phase C"
12861316
},
1317+
"error_code": {
1318+
"name": "Error code"
1319+
},
12871320
"error_status": {
12881321
"name": "Error status"
12891322
},
1323+
"external_temperature": {
1324+
"name": "External temperature"
1325+
},
12901326
"fault_code": {
12911327
"name": "Fault code"
12921328
},
@@ -1296,6 +1332,9 @@
12961332
"formaldehyde": {
12971333
"name": "Formaldehyde concentration"
12981334
},
1335+
"heating_demand": {
1336+
"name": "Heating demand"
1337+
},
12991338
"hooks_state": {
13001339
"name": "Hooks state"
13011340
},
@@ -1382,6 +1421,9 @@
13821421
"load_estimate": {
13831422
"name": "Load estimate"
13841423
},
1424+
"local_temperature": {
1425+
"name": "Local temperature"
1426+
},
13851427
"local_temperature_floor": {
13861428
"name": "Floor temperature"
13871429
},

requirements_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements_test_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/components/zha/snapshots/test_diagnostics.ambr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@
206206
'profile_id': 260,
207207
}),
208208
}),
209+
'exposes_features': list([
210+
]),
209211
'friendly_manufacturer': 'FakeManufacturer',
210212
'friendly_model': 'FakeModel',
211213
'ieee': '**REDACTED**',
@@ -235,7 +237,6 @@
235237
'power_source': 'Mains',
236238
'quirk_applied': False,
237239
'quirk_class': 'zigpy.device.Device',
238-
'quirk_id': None,
239240
'routes': list([
240241
]),
241242
'rssi': None,

0 commit comments

Comments
 (0)