Skip to content

Commit 5999950

Browse files
committed
Removed raw json dump
1 parent 5cf0114 commit 5999950

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

custom_components/daikin_residential_altherma/daikin_api.py

-19
Original file line numberDiff line numberDiff line change
@@ -464,31 +464,12 @@ async def getApiInfo(self):
464464
async def getCloudDeviceDetails(self):
465465
"""Get pure Device Data from the Daikin cloud devices."""
466466
json_puredata = await self.doBearerRequest("/v1/gateway-devices")
467-
468-
# DAMIANO Export JSON
469-
try:
470-
jsonPath = self.hass.config.path("daikin_puredata.json")
471-
with open(jsonPath, 'w') as jsonFile:
472-
json.dump(json_puredata, jsonFile, indent=4, sort_keys=True)
473-
#_LOGGER.info("Damiano export 1 ok")
474-
except Exception as e:
475-
_LOGGER.error("DAMIANO - export 1 error '%s'", e)
476-
477467
return json_puredata
478468

479469
async def getCloudDevices(self):
480470
"""Get array of DaikinResidentialDevice objects and get their data."""
481471
self.json_data = await self.getCloudDeviceDetails()
482472

483-
# DAMIANO Export JSON
484-
try:
485-
jsonPath = self.hass.config.path("daikin_data.json")
486-
with open(jsonPath, 'w') as jsonFile:
487-
json.dump(self.json_data, jsonFile, indent=4, sort_keys=True)
488-
#_LOGGER.info("Damiano export 2 ok")
489-
except Exception as e:
490-
_LOGGER.error("DAMIANO - export 2 error '%s'", e)
491-
492473
res = {}
493474
for dev_data in self.json_data or []:
494475
device = Appliance(dev_data, self)

0 commit comments

Comments
 (0)