Files
core/homeassistant/components
Robert Svensson 66265b6e9a Improve typing of deCONZ light platform (#69886)
homeassistant/components/deconz/light.py:66: error: Incompatible types in assignment (expression has type "List[Union[ConfigurationTool, Cover, Fan, Light, Lock, Siren]]", variable has type "Optional[List[Light]]")  [assignment]
homeassistant/components/deconz/light.py:68: error: Item "None" of "Optional[List[Light]]" has no attribute "__iter__" (not iterable)  [union-attr]
homeassistant/components/deconz/light.py:159: error: Item "LightBase" of "Union[Group, LightBase, SensorBase]" has no attribute "color_mode"  [union-attr]
homeassistant/components/deconz/light.py:159: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "color_mode"  [union-attr]
homeassistant/components/deconz/light.py:161: error: Item "LightBase" of "Union[Group, LightBase, SensorBase]" has no attribute "color_mode"  [union-attr]
homeassistant/components/deconz/light.py:161: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "color_mode"  [union-attr]
homeassistant/components/deconz/light.py:163: error: Item "LightBase" of "Union[Group, LightBase, SensorBase]" has no attribute "color_mode"  [union-attr]
homeassistant/components/deconz/light.py:163: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "color_mode"  [union-attr]
homeassistant/components/deconz/light.py:165: error: Item "LightBase" of "Union[Group, LightBase, SensorBase]" has no attribute "brightness"  [union-attr]
homeassistant/components/deconz/light.py:165: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "brightness"  [union-attr]
homeassistant/components/deconz/light.py:174: error: Unused "type: ignore" comment
homeassistant/components/deconz/light.py:174: error: Item "LightBase" of "Union[Group, LightBase, SensorBase]" has no attribute "brightness"  [union-attr]
homeassistant/components/deconz/light.py:174: note: Error code "union-attr" not covered by "type: ignore" comment
homeassistant/components/deconz/light.py:174: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "brightness"  [union-attr]
homeassistant/components/deconz/light.py:179: error: Unused "type: ignore" comment
homeassistant/components/deconz/light.py:179: error: Item "LightBase" of "Union[Group, LightBase, SensorBase]" has no attribute "color_temp"  [union-attr]
homeassistant/components/deconz/light.py:179: note: Error code "union-attr" not covered by "type: ignore" comment
homeassistant/components/deconz/light.py:179: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "color_temp"  [union-attr]
homeassistant/components/deconz/light.py:179: error: Incompatible return value type (got "Union[int, None, Any]", expected "int")  [return-value]
homeassistant/components/deconz/light.py:179: note: Error code "return-value" not covered by "type: ignore" comment
homeassistant/components/deconz/light.py:184: error: Item "LightBase" of "Union[Group, LightBase, SensorBase]" has no attribute "hue"  [union-attr]
homeassistant/components/deconz/light.py:184: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "hue"  [union-attr]
homeassistant/components/deconz/light.py:184: error: Unsupported operand types for / ("None" and "int")  [operator]
homeassistant/components/deconz/light.py:184: note: Left operand is of type "Union[int, None, Any]"
homeassistant/components/deconz/light.py:184: error: Item "LightBase" of "Union[Group, LightBase, SensorBase]" has no attribute "saturation"  [union-attr]
homeassistant/components/deconz/light.py:184: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "saturation"  [union-attr]
homeassistant/components/deconz/light.py:189: error: Unused "type: ignore" comment
homeassistant/components/deconz/light.py:189: error: Item "LightBase" of "Union[Group, LightBase, SensorBase]" has no attribute "xy"  [union-attr]
homeassistant/components/deconz/light.py:189: note: Error code "union-attr" not covered by "type: ignore" comment
homeassistant/components/deconz/light.py:189: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "xy"  [union-attr]
homeassistant/components/deconz/light.py:194: error: Unused "type: ignore" comment
homeassistant/components/deconz/light.py:194: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "state"  [union-attr]
homeassistant/components/deconz/light.py:194: note: Error code "union-attr" not covered by "type: ignore" comment
homeassistant/components/deconz/light.py:194: error: Incompatible return value type (got "Union[bool, None, Any]", expected "bool")  [return-value]
homeassistant/components/deconz/light.py:194: note: Error code "return-value" not covered by "type: ignore" comment
homeassistant/components/deconz/light.py:228: error: Item "LightBase" of "Union[Group, LightBase, SensorBase]" has no attribute "set_state"  [union-attr]
homeassistant/components/deconz/light.py:228: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "set_state"  [union-attr]
homeassistant/components/deconz/light.py:228: error: Argument 1 to "set_state" of "Group" has incompatible type "**Dict[str, Union[bool, float, int, str, Tuple[float, float]]]"; expected "Union[str, None, Literal['none', 'select', 'lselect']]"  [arg-type]
homeassistant/components/deconz/light.py:228: error: Argument 1 to "set_state" of "Group" has incompatible type "**Dict[str, Union[bool, float, int, str, Tuple[float, float]]]"; expected "Optional[int]"  [arg-type]
homeassistant/components/deconz/light.py:228: error: Argument 1 to "set_state" of "Group" has incompatible type "**Dict[str, Union[bool, float, int, str, Tuple[float, float]]]"; expected "Union[str, None, Literal['colorloop', 'none']]"  [arg-type]
homeassistant/components/deconz/light.py:228: error: Argument 1 to "set_state" of "Group" has incompatible type "**Dict[str, Union[bool, float, int, str, Tuple[float, float]]]"; expected "Optional[bool]"  [arg-type]
homeassistant/components/deconz/light.py:228: error: Argument 1 to "set_state" of "Group" has incompatible type "**Dict[str, Union[bool, float, int, str, Tuple[float, float]]]"; expected "Optional[Tuple[float, float]]"  [arg-type]
homeassistant/components/deconz/light.py:232: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "state"  [union-attr]
homeassistant/components/deconz/light.py:245: error: Item "LightBase" of "Union[Group, LightBase, SensorBase]" has no attribute "set_state"  [union-attr]
homeassistant/components/deconz/light.py:245: error: Item "SensorBase" of "Union[Group, LightBase, SensorBase]" has no attribute "set_state"  [union-attr]
homeassistant/components/deconz/light.py:245: error: Argument 1 to "set_state" of "Group" has incompatible type "**Dict[str, Union[bool, int, str]]"; expected "Union[str, None, Literal['none', 'select', 'lselect']]"  [arg-type]
homeassistant/components/deconz/light.py:245: error: Argument 1 to "set_state" of "Group" has incompatible type "**Dict[str, Union[bool, int, str]]"; expected "Optional[int]"  [arg-type]
homeassistant/components/deconz/light.py:245: error: Argument 1 to "set_state" of "Group" has incompatible type "**Dict[str, Union[bool, int, str]]"; expected "Union[str, None, Literal['colorloop', 'none']]"  [arg-type]
homeassistant/components/deconz/light.py:245: error: Argument 1 to "set_state" of "Group" has incompatible type "**Dict[str, Union[bool, int, str]]"; expected "Optional[bool]"  [arg-type]
homeassistant/components/deconz/light.py:245: error: Argument 1 to "set_state" of "Group" has incompatible type "**Dict[str, Union[bool, int, str]]"; expected "Optional[Tuple[float, float]]"  [arg-type]
2022-04-14 23:31:48 +03:00
..
2022-03-13 00:18:58 +00:00
2022-03-13 00:18:58 +00:00
2022-02-05 13:28:32 +01:00
2022-03-17 19:11:14 +01:00
2022-03-30 18:04:59 +02:00
2022-02-22 00:17:23 +00:00
2022-03-13 00:18:58 +00:00
2022-02-22 00:17:23 +00:00
2022-02-22 00:17:23 +00:00
2022-03-11 00:21:48 +00:00
2022-04-01 12:00:16 +03:00
2022-02-05 13:31:04 +01:00
2022-02-28 18:49:44 -10:00
2022-03-12 00:17:47 +00:00
2022-03-30 14:06:41 +02:00
2022-02-05 14:19:24 +01:00
2022-03-13 00:18:58 +00:00
2022-04-11 12:28:39 -10:00
2022-02-22 00:17:23 +00:00
2022-02-05 14:19:37 +01:00
2022-02-12 11:49:37 -06:00
2022-02-22 00:17:23 +00:00
2022-03-12 00:17:47 +00:00
2022-02-16 19:43:02 +01:00
2022-03-12 00:17:47 +00:00
2022-03-13 00:18:58 +00:00
2022-03-25 15:14:48 -07:00
2022-02-05 14:19:24 +01:00
2022-03-11 00:21:48 +00:00
2022-03-30 10:35:30 +02:00
2022-03-13 00:18:58 +00:00
2022-02-19 15:44:18 +01:00
2022-03-11 00:21:48 +00:00
2022-04-01 11:40:29 +03:00
2022-03-11 00:21:48 +00:00
2022-03-12 00:17:47 +00:00
2022-03-13 00:18:58 +00:00
2022-03-12 00:17:47 +00:00
2022-04-12 14:54:01 +02:00
2022-02-22 00:17:23 +00:00
2022-03-13 00:18:58 +00:00
2022-03-27 16:08:24 +02:00
2022-03-12 00:17:47 +00:00
2022-04-10 17:07:22 +03:00
2022-03-13 00:18:58 +00:00
2022-02-22 00:17:23 +00:00
2022-04-08 23:28:03 +03:00
2022-03-03 15:22:36 -08:00
2022-03-13 00:18:58 +00:00
2022-04-11 22:18:31 +03:00
2022-03-30 12:15:04 +02:00
2022-02-10 00:15:56 +00:00
2022-04-05 16:33:13 -07:00
2022-02-22 00:17:23 +00:00
2022-02-05 14:19:24 +01:00
2022-02-05 14:19:37 +01:00
2022-02-05 14:19:24 +01:00
2022-03-30 16:15:34 +02:00
2022-04-13 18:36:05 +02:00
2022-04-14 23:14:25 +03:00
2022-03-13 00:18:58 +00:00
2022-03-14 19:37:34 +01:00
2022-03-11 09:24:08 -08:00
2022-04-13 10:43:17 -10:00
2022-03-11 00:21:48 +00:00
2022-03-14 00:21:06 +00:00
2022-02-28 23:10:14 +01:00
2022-02-22 00:17:23 +00:00
2022-04-06 13:01:55 +02:00
2022-04-07 23:07:33 +02:00
2022-02-22 00:17:23 +00:00
2022-02-22 00:17:23 +00:00
2022-03-13 00:18:58 +00:00
2022-04-07 14:59:23 +03:00
2022-03-13 00:18:58 +00:00
2022-02-05 14:19:37 +01:00
2022-02-22 00:17:23 +00:00
2022-03-13 00:18:58 +00:00
2022-02-06 00:17:31 +00:00
2022-04-10 14:17:21 -07:00
2022-03-13 00:18:58 +00:00
2022-03-12 00:17:47 +00:00
2022-03-13 00:18:58 +00:00
2022-03-16 10:18:55 +01:00
2022-03-12 00:17:47 +00:00
2022-03-15 18:33:16 +01:00
2022-04-12 14:10:54 -07:00
2022-03-14 00:21:06 +00:00
2022-02-05 14:19:37 +01:00
2022-03-12 00:17:47 +00:00
2022-02-22 00:17:23 +00:00
2022-03-13 00:18:58 +00:00
2022-02-17 14:58:24 +01:00
2022-04-10 20:57:56 +03:00
2022-02-28 16:39:13 -08:00
2022-03-11 00:21:48 +00:00
2022-04-13 17:02:57 -04:00
2022-03-13 00:18:58 +00:00