Skip to content

Ошибка для объектов из better thermostat #588

@dext0r

Description

@dext0r
  File "/config/custom_components/yandex_smart_home/capability_range.py", line 276, in _range
    return RangeCapabilityRange(
        min=self.state.attributes.get(climate.ATTR_MIN_TEMP, 0),
        max=self.state.attributes.get(climate.ATTR_MAX_TEMP, 100),
        precision=self.state.attributes.get(climate.ATTR_TARGET_TEMP_STEP, 0.5),
    )
  File "/usr/local/lib/python3.13/site-packages/pydantic/v1/main.py", line 341, in init
    raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for RangeCapabilityRange
precision
  none is not an allowed value (type=type_error.none.not_allowed)

Дополнительно проверить аналогичные места, где None недопустим

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions