apetrycki / daikinskyport

API for accessing a DaikinOne+ Thermostat
63 stars 27 forks source link

save_json from homeassistant.util.json module depreciated #55

Closed jasonhurlbert closed 1 year ago

jasonhurlbert commented 1 year ago

I noticed today in Home Assistant's logs while setting up a new instance of Home Assistant that daikinskyport is using a depreciated (and soon to be removed) module:

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: 2:01:33 PM (1 occurrences)
Last logged: 2:01:33 PM

Detected integration that uses save_json from homeassistant.util.json module. This is deprecated and will stop working in Home Assistant 2022.4, it should be updated to use homeassistant.helpers.json module instead. Please report issue to the custom integration author for daikinskyport using this method at custom_components/daikinskyport/__init__.py, line 70: save_json(hass.config.path(DAIKINSKYPORT_CONFIG_FILE), jsonconfig)
unc2k3 commented 1 year ago

I noticed today in Home Assistant's logs while setting up a new instance of Home Assistant that daikinskyport is using a depreciated (and soon to be removed) module:

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: 2:01:33 PM (1 occurrences)
Last logged: 2:01:33 PM

Detected integration that uses save_json from homeassistant.util.json module. This is deprecated and will stop working in Home Assistant 2022.4, it should be updated to use homeassistant.helpers.json module instead. Please report issue to the custom integration author for daikinskyport using this method at custom_components/daikinskyport/__init__.py, line 70: save_json(hass.config.path(DAIKINSKYPORT_CONFIG_FILE), jsonconfig)

This has broken my integration for my Daikin Thermostats as well. Rolling back to a previous instance until fixed.