Skip to content

POWER_WATT was used from currentcost, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.WATT instead #25

Description

@vw-kombi

name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''


Describe the bug
2024-01-21 13:12:17.417 WARNING (MainThread) [homeassistant.const] POWER_WATT was used from currentcost, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.WATT instead, please create a bug report at https://github.com/lolouk44/CurrentCost_HA_CC/issues

To Reproduce
restart HA - warning from the core relating to this.

Expected behaviour
no warning on startup

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop/Server/Device (please complete the following information):

  • Device used to run the Custom Component [e.g. Raspberry Pi, NUC]
  • Method of installation [e.g. via HACS or manual]
  • Version of the Custom Component installed?
  • Model of the Current Cost Device

Additional context
Add any other context about the problem here.

Logs
Please set the Current Cost Custom Component's logging level to debug and provide relevant logs section from Home-Assistant.
To Enable debug logging level, add this to your configuration.yaml and restart:

logger:
  default: error
  logs:
    custom_components.currentcost: debug

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions