Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #138 from oischinger/accessPrivateCacheDuration
Browse files Browse the repository at this point in the history
Proper name mangling for cacheduration
  • Loading branch information
oischinger authored May 1, 2023
2 parents 4a97d25 + dfbd0c2 commit b65533b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/vicare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def setup_vicare_api(hass, entry):
_LOGGER.info(
"Found device: %s (online: %s)", device.getModel(), str(device.isOnline())
)
device.service.__cacheDuration = DEFAULT_SCAN_INTERVAL * len(vicare_api.devices)
device.service._PyViCareCachedService__cacheDuration = DEFAULT_SCAN_INTERVAL * len(vicare_api.devices)


hass.data[DOMAIN][entry.entry_id][VICARE_DEVICE_CONFIG] = vicare_api.devices
Expand Down

2 comments on commit b65533b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.