This integration was working for a few hours but now is generating this error
�[33m2025-11-10 17:25:00.149 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant�[0m
�[33m2025-11-10 17:25:00.149 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration smartbox which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant�[0m
�[33m2025-11-10 17:25:00.150 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration climate_scheduler which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant�[0m
�[36m2025-11-10 17:25:01.000 DEBUG (MainThread) [custom_components.climate_scheduler.switch] switch.climate_scheduler_master_bedroom_scheduler: Updating climate�[0m
�[36m2025-11-10 17:25:01.000 DEBUG (MainThread) [custom_components.climate_scheduler.switch] switch.climate_scheduler_master_bedroom_scheduler: Disabled�[0m
�[31m2025-11-10 17:25:01.000 ERROR (MainThread) [homeassistant.components.switch] Error adding entity switch.climate_scheduler_master_bedroom_scheduler for domain switch with platform climate_scheduler
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 1002, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1380, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/climate_scheduler/switch.py", line 421, in async_added_to_hass
ATTR_ENTITY_ID: self._profile_selector.entity_id,
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ClimateSchedulerSwitch' object has no attribute '_profile_selector'�[0m
�[33m2025-11-10 17:25:01.014 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'climate_scheduler' calls async_track_state_change instead of async_track_state_change_event which is deprecated and will be removed in Home Assistant 2025.5 at custom_components/climate_scheduler/switch.py, line 393: self._profile_tracker_remover = async_track_state_change(. Please create a bug report at https://github.com/FrancisLab/hass-climate-scheduler/issues�[0m
Here is configuration YAML:
`climate_scheduler:
update_interval: "00:10:00"
switch:
- platform: climate_scheduler
name: Master Bedroom Scheduler
default_state: False
default_profile: "Home"
climate_entities:
- climate.master_bedroom
profiles:
- id: "Home"
default_hvac_mode: "heat"
default_min_temp: 12.0
schedule:
- time: "08:00:00"
min_temp: 12.0
- time: "16:05:00"
min_temp: 21.0
- id: "Away"
default_hvac_mode: "heat"
default_min_temp: 12.0`
The profile selector component is created in the default dashboard but the switch component is not (it was earlier)
This integration was working for a few hours but now is generating this error
�[33m2025-11-10 17:25:00.149 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant�[0m
�[33m2025-11-10 17:25:00.149 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration smartbox which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant�[0m
�[33m2025-11-10 17:25:00.150 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration climate_scheduler which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant�[0m
�[36m2025-11-10 17:25:01.000 DEBUG (MainThread) [custom_components.climate_scheduler.switch] switch.climate_scheduler_master_bedroom_scheduler: Updating climate�[0m
�[36m2025-11-10 17:25:01.000 DEBUG (MainThread) [custom_components.climate_scheduler.switch] switch.climate_scheduler_master_bedroom_scheduler: Disabled�[0m
�[31m2025-11-10 17:25:01.000 ERROR (MainThread) [homeassistant.components.switch] Error adding entity switch.climate_scheduler_master_bedroom_scheduler for domain switch with platform climate_scheduler
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 1002, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1380, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/climate_scheduler/switch.py", line 421, in async_added_to_hass
ATTR_ENTITY_ID: self._profile_selector.entity_id,
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ClimateSchedulerSwitch' object has no attribute '_profile_selector'�[0m
�[33m2025-11-10 17:25:01.014 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'climate_scheduler' calls
async_track_state_changeinstead ofasync_track_state_change_eventwhich is deprecated and will be removed in Home Assistant 2025.5 at custom_components/climate_scheduler/switch.py, line 393: self._profile_tracker_remover = async_track_state_change(. Please create a bug report at https://github.com/FrancisLab/hass-climate-scheduler/issues�[0mHere is configuration YAML:
`climate_scheduler:
update_interval: "00:10:00"
switch:
name: Master Bedroom Scheduler
default_state: False
default_profile: "Home"
climate_entities:
profiles:
default_hvac_mode: "heat"
default_min_temp: 12.0
schedule:
min_temp: 12.0
min_temp: 21.0
default_hvac_mode: "heat"
default_min_temp: 12.0`
The profile selector component is created in the default dashboard but the switch component is not (it was earlier)