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 · 12 comments
Open
2 tasks done

SUPPORT_ON_OFF is deprecated #505

LennardPlay opened this issue Jan 7, 2024 · 12 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.

@Quentame
Copy link

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

Why hasn't been it released yet ?

@auanasgheps
Copy link

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

sanderlv commented Nov 2, 2024

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

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

@pergolafabio
Copy link

1 month to go? Any update on this? :-(

@PiotrMachowski
Copy link
Owner

It will be released before the deadline 👍

@X1pheR
Copy link

X1pheR commented Dec 19, 2024

Ah nice @PiotrMachowski. I was also watching this. Good to hear the integration isn't abandoned and you are still active 👌

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

10 participants