Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed price not working after update #516

Closed
mbuhansen opened this issue Jun 14, 2024 · 1 comment · Fixed by #519
Closed

Fixed price not working after update #516

mbuhansen opened this issue Jun 14, 2024 · 1 comment · Fixed by #519
Assignees
Labels
bug Something isn't working

Comments

@mbuhansen
Copy link

mbuhansen commented Jun 14, 2024

Describe the issue

Energi data service 1.5.7
After update HA core to 2024.6.2 energi data service Fixed price is not working.
Variable price is working correctly.

What version of Home Assistant Core has the issue?

2024.6.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Diagnostics information

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:600
integration: Sensor (documentation, issues)
First occurred: 8:47:28 PM (1 occurrences)
Last logged: 8:47:28 PM

Error adding entity sensor.energi_data_service_fast for domain sensor with platform energidataservice
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 600, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 914, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1354, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/energidataservice/sensor.py", line 605, in async_added_to_hass
await self.validate_data()
File "/config/custom_components/energidataservice/sensor.py", line 405, in validate_data
await self._api.update()
File "/config/custom_components/energidataservice/api.py", line 170, in update
if api.today and not self.today:
^^^^^^^^^
File "/config/custom_components/energidataservice/connectors/fixedprice/init.py", line 76, in today
return prepare_data(self.value, date, self.tz)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/energidataservice/connectors/fixedprice/init.py", line 24, in prepare_data
local_tz = pytz.timezone(tz)
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pytz/init.py", line 170, in timezone
if zone.upper() == 'UTC':
^^^^^^^^^^
AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'upper'

Anything in the logs that might be useful for us?

No response

Additional information

No response

@mbuhansen mbuhansen added the bug Something isn't working label Jun 14, 2024
@garret
Copy link

garret commented Jun 16, 2024

I experience the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants