Giter VIP home page Giter VIP logo

Comments (6)

rautesamtr avatar rautesamtr commented on July 21, 2024 5

This will be changed in 2.0 release, please stop re-reporting a deprecation warning. Reporting it once is enough.

from thermal_comfort.

rautesamtr avatar rautesamtr commented on July 21, 2024 4

Thanks for the report, i guess 2022.4 is a typo and it probably will be removed in 2023.4. We will update to unit_conversion once pytest-homeassistant-custom-component moves to 2022.10.

from thermal_comfort.

riddik14 avatar riddik14 commented on July 21, 2024 1

Detected integration that uses temperature utility. This is deprecated since 2022.10 and will stop working in Home Assistant 2022.4, it should be updated to use unit_conversion.TemperatureConverter instead. Please report issue to the custom integration author for thermal_comfort using this method at custom_components/thermal_comfort/sensor.py, line 604: fahrenheit = temperature.celsius_to_fahrenheit(self._temperature)

from thermal_comfort.

jesserockz avatar jesserockz commented on July 21, 2024

I get that temperature doesn't even exist already:

2022-10-04 13:49:19.837 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.roof_space_simmerzone fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 515, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 710, in async_device_update
    raise exc
  File "/config/custom_components/thermal_comfort/sensor.py", line 446, in async_update
    value = await getattr(self._device, self._sensor_type)()
  File "/config/custom_components/thermal_comfort/sensor.py", line 261, in wrapped
    setattr(self, f"_{sensor_type}", await func(self, *args, **kwargs))
  File "/config/custom_components/thermal_comfort/sensor.py", line 712, in simmer_zone
    si = await self.simmer_index()
  File "/config/custom_components/thermal_comfort/sensor.py", line 261, in wrapped
    setattr(self, f"_{sensor_type}", await func(self, *args, **kwargs))
  File "/config/custom_components/thermal_comfort/sensor.py", line 696, in simmer_index
    fahrenheit = util.temperature.celsius_to_fahrenheit(self._temperature)
AttributeError: module 'homeassistant.util' has no attribute 'temperature'

from thermal_comfort.

rautesamtr avatar rautesamtr commented on July 21, 2024

This is more of an import error, importing the temperature module directly from homeassistant.util import temperature still works, from homeassistant import util results in this error.

from thermal_comfort.

haze1986 avatar haze1986 commented on July 21, 2024

How do I update thermal comfort to fix this please?

from thermal_comfort.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.