1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-17 23:53:49 +01:00

Mark device_info type hint as mandatory (#164951)

This commit is contained in:
epenet
2026-03-06 15:15:05 +01:00
committed by GitHub
parent 13d2211755
commit f19068f7de

View File

@@ -698,6 +698,7 @@ _ENTITY_MATCH: list[TypeHintMatch] = [
TypeHintMatch( TypeHintMatch(
function_name="device_info", function_name="device_info",
return_type=["DeviceInfo", None], return_type=["DeviceInfo", None],
mandatory=True,
), ),
TypeHintMatch( TypeHintMatch(
function_name="device_class", function_name="device_class",