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.12k stars 121 forks source link

SUPPORT_ON_OFF is deprecated #505

Open LennardPlay opened 6 months ago

LennardPlay commented 6 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 6 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 6 months ago

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

LennardPlay commented 6 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 6 months ago

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