Files
core/tests/components
Robert Svensson 87551b7880 Improve typing of deCONZ climate platform (#69882)
* Improve typing of deCONZ climate platform

homeassistant/components/deconz/climate.py:153: error: Dict entry 0 has incompatible type "str": "bool"; expected "str": "str"  [dict-item]
homeassistant/components/deconz/climate.py:154: error: Dict entry 1 has incompatible type "str": "bool"; expected "str": "str"  [dict-item]
homeassistant/components/deconz/climate.py:176: error: Argument 1 to "get" of "Mapping" has incompatible type "Optional[Literal['off', 'low', 'medium', 'high', 'on', 'auto', 'smart']]"; expected "str"  [arg-type]
homeassistant/components/deconz/climate.py:200: error: Argument 1 to "get" of "Mapping" has incompatible type "Optional[Literal['off', 'auto', 'cool', 'heat', 'emergency heating', 'precooling', 'fan only', 'dry', 'sleep']]"; expected "str"  [arg-type]
homeassistant/components/deconz/climate.py:218: error: Argument 1 to "set_config" of "Thermostat" has incompatible type "**Dict[str, str]"; expected "Optional[int]"  [arg-type]
homeassistant/components/deconz/climate.py:218: error: Argument 1 to "set_config" of "Thermostat" has incompatible type "**Dict[str, str]"; expected "Optional[bool]"  [arg-type]
homeassistant/components/deconz/climate.py:218: error: Argument 1 to "set_config" of "Thermostat" has incompatible type "**Dict[str, str]"; expected "Optional[List[str]]"  [arg-type]
homeassistant/components/deconz/climate.py:225: error: Argument 1 to "get" of "Mapping" has incompatible type "Optional[Literal['holiday', 'auto', 'manual', 'comfort', 'eco', 'boost', 'complex']]"; expected "str"  [arg-type]
homeassistant/components/deconz/climate.py:244: error: Unused "type: ignore" comment
homeassistant/components/deconz/climate.py:250: error: Unused "type: ignore" comment
homeassistant/components/deconz/climate.py:253: error: Unused "type: ignore" comment

* Simplify populating supported_hvac_modes
Fix tests
2022-04-14 23:19:42 +03:00
..
2021-08-17 17:29:20 +02:00
2022-01-26 10:34:33 +01:00
2022-03-30 11:26:08 +02:00
2022-03-22 21:01:24 -07:00
2022-02-26 19:37:24 +01:00
2021-09-13 18:18:21 +02:00
2022-03-26 09:50:50 -10:00
2022-02-12 11:49:37 -06:00
2022-04-12 11:00:55 +02:00
2021-12-20 16:18:58 +01:00
2022-02-19 11:38:10 +01:00
2022-04-11 16:51:13 +02:00
2022-03-20 20:34:02 -07:00
2022-04-01 15:11:37 +02:00
2022-03-30 11:26:08 +02:00
2022-03-03 15:12:33 -08:00
2021-02-28 14:16:37 +01:00
2022-01-18 11:02:43 -08:00
2022-03-30 12:15:04 +02:00
2022-02-14 11:05:06 +01:00
2022-03-30 12:15:04 +02:00
2021-11-01 20:47:05 -07:00
2022-03-30 12:15:04 +02:00
2022-03-30 16:15:34 +02:00
2022-03-30 11:26:08 +02:00
2022-02-12 08:28:54 -06:00
2022-03-07 18:58:29 +01:00
2021-10-14 10:03:38 -07:00
2022-02-19 20:27:06 +01:00
2021-11-01 20:47:05 -07:00
2022-03-04 08:20:10 -10:00
2022-03-01 13:18:49 +02:00
2021-11-01 20:47:05 -07:00
2022-01-20 15:03:14 +01:00
2021-06-11 13:35:03 +02:00
2022-03-16 10:18:55 +01:00
2022-02-23 09:26:46 -10:00
2022-04-12 14:10:54 -07:00
2022-03-12 12:36:08 +01:00
2022-03-03 07:59:31 +01:00
2021-03-19 15:54:07 +01:00
2021-12-31 09:44:35 -10:00
2022-01-13 15:32:39 +01:00