Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SUPPORT_ON_OFF is deprecated #505

Open
2 tasks done
LennardPlay opened this issue Jan 7, 2024 · 5 comments
Open
2 tasks done

SUPPORT_ON_OFF is deprecated #505

LennardPlay opened this issue Jan 7, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@LennardPlay
Copy link

LennardPlay commented Jan 7, 2024

Checklist

  • I have updated the integration to the latest version available
  • I have checked if the problem is already reported

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

@LennardPlay LennardPlay added the bug Something isn't working label Jan 7, 2024
@AKwithF
Copy link

AKwithF commented Jan 9, 2024

@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
Copy link

AKwithF commented Jan 10, 2024

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

@LennardPlay
Copy link
Author

@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
Copy link
Owner

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

@mattdevo1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants