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

Commit b65533b

Browse files
authored
Merge pull request #138 from oischinger/accessPrivateCacheDuration
Proper name mangling for cacheduration
2 parents 4a97d25 + dfbd0c2 commit b65533b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/vicare/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def setup_vicare_api(hass, entry):
129129
_LOGGER.info(
130130
"Found device: %s (online: %s)", device.getModel(), str(device.isOnline())
131131
)
132-
device.service.__cacheDuration = DEFAULT_SCAN_INTERVAL * len(vicare_api.devices)
132+
device.service._PyViCareCachedService__cacheDuration = DEFAULT_SCAN_INTERVAL * len(vicare_api.devices)
133133

134134

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

0 commit comments

Comments
 (0)