updated lovelace dashboards and migrate tcp sensors to use serial component with SOCAT
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
"""JSON utils."""
|
||||
|
||||
try:
|
||||
# Could be removed after 2022.06 is the min version
|
||||
# But in case Home Assistant changes, keep this try/except here...
|
||||
from homeassistant.helpers.json import json_loads
|
||||
except ImportError:
|
||||
from json import loads as json_loads
|
||||
from homeassistant.util.json import json_loads
|
||||
|
||||
__all__ = ["json_loads"]
|
||||
|
||||
Reference in New Issue
Block a user