Skip to content

Commit 461bf64

Browse files
authored
Merge pull request #123 from VarChar42/master
Remove raw json dumps
2 parents b6a08c9 + 9eedb11 commit 461bf64

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
@@ -465,31 +465,12 @@ async def getApiInfo(self):
465465
async def getCloudDeviceDetails(self):
466466
"""Get pure Device Data from the Daikin cloud devices."""
467467
json_puredata = await self.doBearerRequest("/v1/gateway-devices")
468-
469-
# DAMIANO Export JSON
470-
try:
471-
jsonPath = self.hass.config.path("daikin_puredata.json")
472-
with open(jsonPath, 'w') as jsonFile:
473-
json.dump(json_puredata, jsonFile, indent=4, sort_keys=True)
474-
#_LOGGER.info("Damiano export 1 ok")
475-
except Exception as e:
476-
_LOGGER.error("DAMIANO - export 1 error '%s'", e)
477-
478468
return json_puredata
479469

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

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

0 commit comments

Comments
 (0)