Skip to content

Commit b8ca4f8

Browse files
authored
Merge branch 'dev' into 20241011-1431
2 parents 7b12941 + 906cecf commit b8ca4f8

File tree

19 files changed

+524
-9662
lines changed

19 files changed

+524
-9662
lines changed

homeassistant/components/light/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: # noqa:
408408
def preprocess_data(data: dict[str, Any]) -> VolDictType:
409409
"""Preprocess the service data."""
410410
base: VolDictType = {
411-
entity_field: data.pop(entity_field)
411+
entity_field: data.pop(entity_field) # type: ignore[arg-type]
412412
for entity_field in cv.ENTITY_SERVICE_FIELDS
413413
if entity_field in data
414414
}

homeassistant/components/overkiz/climate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async def async_setup_entry(
9696
# ie Atlantic APC
9797
entities_based_on_widget_and_controllable: list[Entity] = [
9898
WIDGET_AND_CONTROLLABLE_TO_CLIMATE_ENTITY[device.widget][
99-
device.controllable_name
99+
device.controllable_name # type: ignore[index]
100100
](device.device_url, data.coordinator)
101101
for device in data.platforms[Platform.CLIMATE]
102102
if device.widget in WIDGET_AND_CONTROLLABLE_TO_CLIMATE_ENTITY

requirements_test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ astroid==3.3.4
1111
coverage==7.6.1
1212
freezegun==1.5.1
1313
mock-open==1.4.0
14-
mypy-dev==1.12.0a5
14+
mypy-dev==1.13.0a1
1515
pre-commit==4.0.0
1616
pydantic==1.10.18
1717
pylint==3.3.1

tests/components/analytics_insights/snapshots/test_sensor.ambr

Lines changed: 0 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -299,103 +299,3 @@
299299
'state': '339',
300300
})
301301
# ---
302-
# name: test_all_entities[sensor.total_active_installations-entry]
303-
EntityRegistryEntrySnapshot({
304-
'aliases': set({
305-
}),
306-
'area_id': None,
307-
'capabilities': dict({
308-
'state_class': <SensorStateClass.TOTAL: 'total'>,
309-
}),
310-
'config_entry_id': <ANY>,
311-
'device_class': None,
312-
'device_id': <ANY>,
313-
'disabled_by': None,
314-
'domain': 'sensor',
315-
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
316-
'entity_id': 'sensor.total_active_installations',
317-
'has_entity_name': True,
318-
'hidden_by': None,
319-
'icon': None,
320-
'id': <ANY>,
321-
'labels': set({
322-
}),
323-
'name': None,
324-
'options': dict({
325-
}),
326-
'original_device_class': None,
327-
'original_icon': None,
328-
'original_name': 'Total active installations',
329-
'platform': 'analytics_insights',
330-
'previous_unique_id': None,
331-
'supported_features': 0,
332-
'translation_key': 'total_active_installations',
333-
'unique_id': 'total_active_installations',
334-
'unit_of_measurement': 'active installations',
335-
})
336-
# ---
337-
# name: test_all_entities[sensor.total_active_installations-state]
338-
StateSnapshot({
339-
'attributes': ReadOnlyDict({
340-
'friendly_name': 'Homeassistant Analytics Total active installations',
341-
'state_class': <SensorStateClass.TOTAL: 'total'>,
342-
'unit_of_measurement': 'active installations',
343-
}),
344-
'context': <ANY>,
345-
'entity_id': 'sensor.total_active_installations',
346-
'last_changed': <ANY>,
347-
'last_reported': <ANY>,
348-
'last_updated': <ANY>,
349-
'state': '310400',
350-
})
351-
# ---
352-
# name: test_all_entities[sensor.total_reports_integrations-entry]
353-
EntityRegistryEntrySnapshot({
354-
'aliases': set({
355-
}),
356-
'area_id': None,
357-
'capabilities': dict({
358-
'state_class': <SensorStateClass.TOTAL: 'total'>,
359-
}),
360-
'config_entry_id': <ANY>,
361-
'device_class': None,
362-
'device_id': <ANY>,
363-
'disabled_by': None,
364-
'domain': 'sensor',
365-
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
366-
'entity_id': 'sensor.total_reports_integrations',
367-
'has_entity_name': True,
368-
'hidden_by': None,
369-
'icon': None,
370-
'id': <ANY>,
371-
'labels': set({
372-
}),
373-
'name': None,
374-
'options': dict({
375-
}),
376-
'original_device_class': None,
377-
'original_icon': None,
378-
'original_name': 'Total reported integrations',
379-
'platform': 'analytics_insights',
380-
'previous_unique_id': None,
381-
'supported_features': 0,
382-
'translation_key': 'total_reports_integrations',
383-
'unique_id': 'total_reports_integrations',
384-
'unit_of_measurement': 'active installations',
385-
})
386-
# ---
387-
# name: test_all_entities[sensor.total_reports_integrations-state]
388-
StateSnapshot({
389-
'attributes': ReadOnlyDict({
390-
'friendly_name': 'Homeassistant Analytics Total reported integrations',
391-
'state_class': <SensorStateClass.TOTAL: 'total'>,
392-
'unit_of_measurement': 'active installations',
393-
}),
394-
'context': <ANY>,
395-
'entity_id': 'sensor.total_reports_integrations',
396-
'last_changed': <ANY>,
397-
'last_reported': <ANY>,
398-
'last_updated': <ANY>,
399-
'state': '249256',
400-
})
401-
# ---

tests/components/gardena_bluetooth/snapshots/test_config_flow.ambr

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -84,60 +84,6 @@
8484
'type': <FlowResultType.ABORT: 'abort'>,
8585
})
8686
# ---
87-
# name: test_bluetooth_lost
88-
FlowResultSnapshot({
89-
'data_schema': None,
90-
'description_placeholders': dict({
91-
'name': 'Timer',
92-
}),
93-
'errors': None,
94-
'flow_id': <ANY>,
95-
'handler': 'gardena_bluetooth',
96-
'last_step': None,
97-
'step_id': 'confirm',
98-
'type': <FlowResultType.FORM: 'form'>,
99-
})
100-
# ---
101-
# name: test_bluetooth_lost.1
102-
FlowResultSnapshot({
103-
'context': dict({
104-
'confirm_only': True,
105-
'source': 'bluetooth',
106-
'title_placeholders': dict({
107-
'name': 'Timer',
108-
}),
109-
'unique_id': '00000000-0000-0000-0000-000000000001',
110-
}),
111-
'data': dict({
112-
'address': '00000000-0000-0000-0000-000000000001',
113-
}),
114-
'description': None,
115-
'description_placeholders': None,
116-
'flow_id': <ANY>,
117-
'handler': 'gardena_bluetooth',
118-
'options': dict({
119-
}),
120-
'result': ConfigEntrySnapshot({
121-
'data': dict({
122-
'address': '00000000-0000-0000-0000-000000000001',
123-
}),
124-
'disabled_by': None,
125-
'domain': 'gardena_bluetooth',
126-
'entry_id': <ANY>,
127-
'options': dict({
128-
}),
129-
'pref_disable_new_entities': False,
130-
'pref_disable_polling': False,
131-
'source': 'bluetooth',
132-
'title': 'Timer',
133-
'unique_id': '00000000-0000-0000-0000-000000000001',
134-
'version': 1,
135-
}),
136-
'title': 'Timer',
137-
'type': <FlowResultType.CREATE_ENTRY: 'create_entry'>,
138-
'version': 1,
139-
})
140-
# ---
14187
# name: test_failed_connect[component.gardena_bluetooth.config.abort.cannot_connect]
14288
FlowResultSnapshot({
14389
'data_schema': list([

0 commit comments

Comments
 (0)