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:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user