diff --git a/custom_components/mindergas/sensor.py b/custom_components/mindergas/sensor.py index eb356a3..1b9baa5 100644 --- a/custom_components/mindergas/sensor.py +++ b/custom_components/mindergas/sensor.py @@ -80,7 +80,7 @@ def update(self): n = 0 while not URL_RESULT == URL_DASHBOARD : if n == 10: - _LOGGER.error('Update of ' + str(self._name) + 'failed after ' + n + 'attempts') + _LOGGER.error('Update of ' + str(self._name) + 'failed after ' + str(n) + 'attempts') break session_requests = requests.session() @@ -165,7 +165,7 @@ def update(self): n = 0 while not URL_RESULT == URL_DASHBOARD : if n == 10: - _LOGGER.error('Update of ' + str(self._name) + 'failed after ' + n + 'attempts') + _LOGGER.error('Update of ' + str(self._name) + 'failed after ' + str(n) + 'attempts') break session_requests = requests.session() @@ -250,7 +250,7 @@ def update(self): n = 0 while not URL_RESULT == URL_DASHBOARD : if n == 10: - _LOGGER.error('Update of ' + str(self._name) + 'failed after ' + n + 'attempts') + _LOGGER.error('Update of ' + str(self._name) + 'failed after ' + str(n) + 'attempts') break session_requests = requests.session() @@ -289,4 +289,4 @@ async def async_added_to_hass(self) -> None: state = await self.async_get_last_state() if not state: return - self._state = state.state \ No newline at end of file + self._state = state.state