Logger: homeassistant.components.sensor
Source: custom_components/moscow_pgu/api.py:2195
Integration: Сенсор (documentation, issues)
First occurred: 12:54:35 (1 occurrences)
Last logged: 12:54:35
moscow_pgu: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 432, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 601, in async_device_update
await task
File "/config/custom_components/moscow_pgu/sensor.py", line 896, in async_update
self.counter_info, self.indications_status = await asyncio.gather(
File "/config/custom_components/moscow_pgu/api.py", line 1857, in get_electric_counter_info
return await self.api.get_electric_counter_info(flat_id=self.flat_id)
File "/config/custom_components/moscow_pgu/api.py", line 588, in get_electric_counter_info
return self._response_data_single(ElectricCounterInfo, result, flat_id=flat_id)
File "/config/custom_components/moscow_pgu/api.py", line 361, in _response_data_single
return __as_cls.from_response_dict(__result, api=self, **kwargs)
File "/config/custom_components/moscow_pgu/api.py", line 1756, in from_response_dict
zones = [
File "/config/custom_components/moscow_pgu/api.py", line 1757, in
ElectricCounterZone.from_response_dict(
File "/config/custom_components/moscow_pgu/api.py", line 1715, in from_response_dict
periods = explode_periods(periods, sep_segments="; ", sep_ranges="-", sep_numbers=".")
File "/config/custom_components/moscow_pgu/api.py", line 2194, in explode_periods
first_period, last_period = map(
File "/config/custom_components/moscow_pgu/api.py", line 2195, in
lambda x: tuple(map(int, x.split(sep_numbers))), period_part.split(sep_ranges)
ValueError: invalid literal for int() with base 10: 'Круглосуточно'
Вылезает ошибка
Logger: homeassistant.components.sensor Source: custom_components/moscow_pgu/api.py:2195 Integration: Сенсор (documentation, issues) First occurred: 12:54:35 (1 occurrences) Last logged: 12:54:35
moscow_pgu: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 432, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 601, in async_device_update await task File "/config/custom_components/moscow_pgu/sensor.py", line 896, in async_update self.counter_info, self.indications_status = await asyncio.gather( File "/config/custom_components/moscow_pgu/api.py", line 1857, in get_electric_counter_info return await self.api.get_electric_counter_info(flat_id=self.flat_id) File "/config/custom_components/moscow_pgu/api.py", line 588, in get_electric_counter_info return self._response_data_single(ElectricCounterInfo, result, flat_id=flat_id) File "/config/custom_components/moscow_pgu/api.py", line 361, in _response_data_single return __as_cls.from_response_dict(__result, api=self, **kwargs) File "/config/custom_components/moscow_pgu/api.py", line 1756, in from_response_dict zones = [ File "/config/custom_components/moscow_pgu/api.py", line 1757, in
ElectricCounterZone.from_response_dict(
File "/config/custom_components/moscow_pgu/api.py", line 1715, in from_response_dict
periods = explode_periods(periods, sep_segments="; ", sep_ranges="-", sep_numbers=".")
File "/config/custom_components/moscow_pgu/api.py", line 2194, in explode_periods
first_period, last_period = map(
File "/config/custom_components/moscow_pgu/api.py", line 2195, in
lambda x: tuple(map(int, x.split(sep_numbers))), period_part.split(sep_ranges)
ValueError: invalid literal for int() with base 10: 'Круглосуточно'