PiotrMachowski / Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor

This custom integration provides a way to present a live view of a map for Xiaomi (Roborock/Viomi/Roidmi/Dreame) vacuums without a need for rooting.
MIT License
1.16k stars 123 forks source link

SUPPORT_ON_OFF is deprecated #505

Open LennardPlay opened 10 months ago

LennardPlay commented 10 months ago

Checklist

The problem

I don't understand the error message completely, but it says, that I should report this error message:

"SUPPORT_ON_OFF was used from xiaomi_cloud_map_extractor, this is a deprecated constant which will be removed in HA Core 2025.1. Use CameraEntityFeature.ON_OFF instead, please create a bug report at https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/issues"

What version of an integration has described problem?

v2.2.1

What was the last working version of an integration?

No response

What vacuum model do you have problems with?

roborock s5

What version of Home Assistant do you use?

2024.1.2

What type of installation are you running?

Home Assistant OS

Camera's configuration

- platform: xiaomi_cloud_map_extractor
  host: 192.168.0.213
  token: XXXXXXXXXXX
  username: XXXXXXXXXXX
  password: XXXXXXXXXXX
  name: Staubsauger Karte
  draw: ['all']
  attributes:
    - calibration_points
    - rooms
  map_transformation:
      scale: 3
      trim:
        top: 20
        bottom: 30
        left: 23
        right: 20
  sizes:
    charger_radius: 8
    vacuum_radius: 10
  colors:
#    color_map_inside: [32, 115, 185]
    color_map_outside: [28,28,28]
    color_map_wall: [44, 44, 44]
    color_path: [225, 225, 225]
    color_robo: [225, 225, 225]

Errors shown in the HA logs (if applicable)

"SUPPORT_ON_OFF was used from xiaomi_cloud_map_extractor, this is a deprecated constant which will be removed in HA Core 2025.1. Use CameraEntityFeature.ON_OFF instead, please create a bug report at https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/issues"

Additional information

No response

AKwithF commented 9 months ago

@LennardPlay, You have a few secrets displayed in your Camera configuration.

@PiotrMachowski, I got the same error message on a dreame.vacuum.mb1808. I have read somewhere that this should be the same as dreame.vacuum.mc1808 which is supported.

AKwithF commented 9 months ago

one additional reboot fixed this for me, Map is extracted from a dreame.vacuum.mb1808.

LennardPlay commented 9 months ago

@LennardPlay, You have a few secrets displayed in your Camera configuration.

Thanks for letting me know. It's there anything I can do about it right now?

PiotrMachowski commented 9 months ago

@LennardPlay I have removed them from your config and from visible history, but you should still change your password

mattdevo1 commented 2 months ago

@PiotrMachowski - any plans to fix this? We still have 4 months I guess, but it would be nice to get rid of the errors.

Quentame commented 3 weeks ago

A PR that fixes that issues exists from 10 months ago : #502

Why hasn't been it released yet ?

auanasgheps commented 3 weeks ago

We haven't had any updates since a while. I guess the project it's being soft-abandoned since the maintainer is actively working on other HA stuff

sanderlv commented 2 days ago

I have these message as well...

Entity camera.xiaomi_cloud_map_extractor (<class 'custom_components.xiaomi_cloud_map_extractor.camera.VacuumCamera'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <CameraEntityFeature.ON_OFF: 1>, please create a bug report at https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

Is there any "update" availabe? Or another integration?

csszokolai commented 1 day ago

Any news on this?

Entity vacuum.mi_robot (<class 'custom_components.viomi_vacuum_v8.vacuum.ViomiVacuumEntity'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <VacuumEntityFeature.PAUSE|STOP|RETURN_HOME|FAN_SPEED|BATTERY|SEND_COMMAND|LOCATE|STATE|START: 13180>, please report it to the author of the 'viomi_vacuum_v8' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation