home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.19k stars 29.85k forks source link

TypeError: unsupported operand type(s) for *: 'int' and 'NoneType' #21691

Closed bforbird closed 5 years ago

bforbird commented 5 years ago

File "/usr/src/app/homeassistant/components/opentherm_gw/climate.py", line 129 (perhaps also check line 131)

ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity.py", line 239, in async_update_ha_state
    attr = self.state_attributes or {}
  File "/usr/src/app/homeassistant/components/climate/__init__.py", line 227, in state_attributes
    self.hass, self.current_temperature, self.temperature_unit,
  File "/usr/src/app/homeassistant/components/opentherm_gw/climate.py", line 129, in current_temperature
    return int(2 * self._current_temperature) / 2
TypeError: unsupported operand type(s) for *: 'int' and 'NoneType'
awarecan commented 5 years ago

Please resubmit you issue following our issue template