You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
homeassistant:
name: Home
# Location required to calculate the time the sun rises and sets
latitude: #REDACTED#
longitude: #REDACTED#
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 232
# metric for Metric, imperial for Imperial
unit_system: imperial
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Chicago
country: US
allowlist_external_dirs:
- "/tmp"
# Customization file
customize: !include customize.yaml
packages: !include_dir_named packages
# Show links to resources in log and frontend
# introduction:
# Enables the frontend
frontend:
themes: !include themes.yaml
# Enables configuration UI
config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
http:
use_x_forwarded_for: true
trusted_proxies:
- #REDACTED#
- #REDACTED#
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
# Person Integration
person:
# Mobile App Integration
mobile_app:
# Allow diagnosing system problems
system_health:
# Custom Quirk Support for ZHA
zha:
enable_quirks: true
custom_quirks_path: /config/custom_zha_quirks
database_path: /config/zigbee.db
# Scene Editor
scene: !include scenes.yaml
# Sensors
sensor:
- platform: template
sensors:
generac_##REDACTED##_last_seen_localized:
friendly_name: Last Updated
value_template: >-
{{ as_timestamp(states("sensor.generac_##REDACTED##_last_seen")) | timestamp_custom("%-I:%M %p") }}
# Text to speech
tts:
- platform: google_translate
service_name: google_say
group: !include groups.yaml
script gui: !include scripts.yaml
script: !include_dir_merge_named scripts
automation: !include automations.yaml
cover:
# Device Tracking
device_tracker:
logger:
default: info
weather:
default_config:
input_boolean:
timer:
input_text:
input_number:
input_button:
schedule:
counter:
input_datetime:
mqtt:
Logs
2024-02-10 18:52:27.658 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up generac.binary_sensor
2024-02-10 18:52:27.672 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from generac, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/bentekkie/ha-generac/issues
2024-02-10 18:52:27.678 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from generac, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead, please create a bug report at https://github.com/bentekkie/ha-generac/issues
2024-02-10 18:52:27.681 INFO (MainThread) [homeassistant.components.sensor] Setting up generac.sensor
2024-02-10 18:52:27.689 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from generac, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/bentekkie/ha-generac/issues
2024-02-10 18:52:27.698 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from generac, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead, please create a bug report at https://github.com/bentekkie/ha-generac/issues
2024-02-10 18:52:27.698 INFO (MainThread) [homeassistant.components.weather] Setting up generac.weather
2024-02-10 18:52:27.700 INFO (MainThread) [homeassistant.components.image] Setting up generac.image
2024-02-10 18:52:28.102 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform generac
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 533, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 782, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1325, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 989, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1110, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1047, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 995, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 549, in state
value = self.native_value
^^^^^^^^^^^^^^^^^
File "/config/custom_components/generac/sensor.py", line 232, in native_value
return datetime.strptime(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/_strptime.py", line 555, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/_strptime.py", line 333, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data '2022-02-13T23:02:35+00:00' does not match format '%Y-%m-%dT%H:%M:%S.%f%z'
2024-02-10 18:52:28.108 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up generac platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 352, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 533, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 782, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1325, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 989, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1110, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1047, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 995, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 549, in state
value = self.native_value
^^^^^^^^^^^^^^^^^
File "/config/custom_components/generac/sensor.py", line 232, in native_value
return datetime.strptime(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/_strptime.py", line 555, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/_strptime.py", line 333, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data '2022-02-13T23:02:35+00:00' does not match format '%Y-%m-%dT%H:%M:%S.%f%z'
Describe the bug
Home Assistant is reporting the use of deprecated constants that will be removed in HA Core 2025.1
Version of the custom_component
Component Version: v0.0.11
Core: 2024.2.1
Supervisor: 2024.01.1
Operating System: 11.5
Frontend: 20240207.1
Configuration
Logs
Describe the bug
Home Assistant is reporting the use of deprecated constants that will be removed in HA Core 2025.1
Debug log
The text was updated successfully, but these errors were encountered: