core/homeassistant/components/mqtt
epenet a202588fd2
Add return type to json_loads (#85672)
* Add JSON type definitions

* Sample use

* Keep mutable for a follo-up PR (avoid dead code)

* Use list/dict

* Remove JsonObjectType

* Remove reference to Union

* Cleanup

* Improve rest

* Rename json_dict => json_data

* Add docstring

* Add type hint to json_loads

* Add cast

* Move type alias to json helpers

* Cleanup

* Create and use json_loads_object

* Make error more explicit and add tests

* Use JsonObjectType in conversation

* Remove quotes
2023-02-07 17:21:55 +01:00
..
light Add return type to json_loads (#85672) 2023-02-07 17:21:55 +01:00
vacuum Add return type to json_loads (#85672) 2023-02-07 17:21:55 +01:00
__init__.py
abbreviations.py Add `suggested_display_precision` config option for MQTT sensor (#87129) 2023-02-07 08:55:35 +01:00
alarm_control_panel.py
binary_sensor.py Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
button.py
camera.py
client.py Update mypy to 1.0.0 (#87586) 2023-02-07 02:31:14 +01:00
climate.py Collection of code styling tweaks (#87344) 2023-02-03 23:51:27 +01:00
config.py
config_flow.py
config_integration.py
const.py
cover.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
debug_info.py
device_automation.py
device_tracker.py
device_trigger.py
diagnostics.py
discovery.py Add return type to json_loads (#85672) 2023-02-07 17:21:55 +01:00
fan.py
humidifier.py
lock.py
manifest.json
mixins.py
models.py
number.py Remove use of Number DEVICE_CLASSES_SCHEMA from MQTT (#87345) 2023-02-04 00:08:15 +01:00
scene.py
select.py
sensor.py Fix handling `None` or empty value for numeric MQTT sensor (#87004) 2023-02-07 11:23:23 +01:00
services.yaml
siren.py Add return type to json_loads (#85672) 2023-02-07 17:21:55 +01:00
strings.json
subscription.py Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
switch.py
tag.py
text.py
trigger.py
update.py
util.py Fix `can not` typo (#87254) 2023-02-03 11:37:16 +01:00