#Python error in automation since 2024.12 upgrade

1 messages · Page 1 of 1 (latest)

pulsar dawn
#

I have the following automation:

alias: Adjust Heating Offset at 6 AM and 7 AM Based on Temperature
triggers:
  - at: "06:00:00"
    trigger: time
actions:
  - action: number.set_value
    data:
      value: "0"
    target:
      entity_id: number.heating_offset_climate_system_1_40031_2
  - delay: "01:00:00"
  - condition: numeric_state
    entity_id: sensor.room_average_temp_clim_system_1_bt50_30117
    below: 21.5
  - target:
      entity_id: number.heating_offset_climate_system_1_40031_2
    data:
      value: "1"
    action: number.set_value
mode: single

This worked fine, but since the most recent upgrade of HA, I'm now getting this error:

Error: Unable to avoid copy while creating an array as requested. If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x). For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.
Result:
params:
  domain: number
  service: set_value
  service_data:
    value: '0'
    entity_id:
      - number.heating_offset_climate_system_1_40031_2
  target:
    entity_id:
      - number.heating_offset_climate_system_1_40031_2
running_script: false

I tried recreating the failing step, but not giving me any improvements. Any idea what might be going wrong here?