|
@@ -87,9 +87,9 @@ class SyncSourceSensor(SensorEntity):
|
|
|
@property
|
|
@property
|
|
|
def extra_state_attributes(self) -> dict[str, str | None]:
|
|
def extra_state_attributes(self) -> dict[str, str | None]:
|
|
|
mode = self._entry.options.get(CONF_SYNC_MODE, SYNC_MODE_MANUAL)
|
|
mode = self._entry.options.get(CONF_SYNC_MODE, SYNC_MODE_MANUAL)
|
|
|
- if mode == "caldav":
|
|
|
|
|
|
|
+ if mode == SYNC_MODE_CALDAV:
|
|
|
url = self._entry.options.get(CONF_CALDAV_URL)
|
|
url = self._entry.options.get(CONF_CALDAV_URL)
|
|
|
- elif mode == "api":
|
|
|
|
|
|
|
+ elif mode == SYNC_MODE_API:
|
|
|
url = self._entry.options.get(CONF_API_BASE_URL)
|
|
url = self._entry.options.get(CONF_API_BASE_URL)
|
|
|
else:
|
|
else:
|
|
|
url = None
|
|
url = None
|