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

TEMP_CELSIUS was used from ultimaker #21

Open
seba1337 opened this issue Feb 7, 2024 · 3 comments
Open

TEMP_CELSIUS was used from ultimaker #21

seba1337 opened this issue Feb 7, 2024 · 3 comments

Comments

@seba1337
Copy link

seba1337 commented Feb 7, 2024

Hey,

I get the following error. It says I should report it.

2024-02-07 13:40:14.542 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from ultimaker, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/jellespijker/home-assistant-ultimaker/issues

@PaulKierstead
Copy link

And ... yup, its been removed in 2025.1, this extension now fails

@PaulKierstead
Copy link

PaulKierstead commented Jan 4, 2025

I created a pull request for the change to make it work. I had to transpose from what was in the docker (and working) but 99.9% it matched what I did

@jahi-oss
Copy link

I changed in File \custom_components\ultimaker\sensor.py
TEMP_CELSIUS to UnitOfTemperature.CELSIUS and is works fine with HA OS 2025.1

from homeassistant.const import (
CONF_HOST,
CONF_NAME,
CONF_SCAN_INTERVAL,
CONF_SENSORS,
UnitOfTemperature,
)

example
"bed_temperature": ["Bed temperature", UnitOfTemperature.CELSIUS, "mdi:thermometer"],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants