Fix sensor + change all obsolete consts #109
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
2024-03-10 10:42:49.726 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2024-03-10 10:42:50.435 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from huawei_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.MEASUREMENT instead, please report it to the author of the 'huawei_solar' custom integration
2024-03-10 10:42:50.446 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from huawei_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL_INCREASING instead, please report it to the author of the 'huawei_solar' custom integration
2024-03-10 10:42:50.457 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from huawei_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.MEASUREMENT instead, please report it to the author of the 'huawei_solar' custom integration
2024-03-10 10:42:50.468 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from huawei_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL_INCREASING instead, please report it to the author of the 'huawei_solar' custom integration
2024-03-10 10:42:50.479 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_CURRENT was used from huawei_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.CURRENT instead, please report it to the author of the 'huawei_solar' custom integration
2024-03-10 10:42:50.490 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_ENERGY was used from huawei_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please report it to the author of the 'huawei_solar' custom integration
2024-03-10 10:42:50.501 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_POWER was used from huawei_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.POWER instead, please report it to the author of the 'huawei_solar' custom integration
2024-03-10 10:42:50.512 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_VOLTAGE was used from huawei_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.VOLTAGE instead, please report it to the author of the 'huawei_solar' custom integration
2024-03-10 10:42:50.524 WARNING (MainThread) [homeassistant.const] ENERGY_KILO_WATT_HOUR was used from huawei_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please report it to the author of the 'huawei_solar' custom integration
2024-03-10 10:42:50.535 WARNING (MainThread) [homeassistant.const] POWER_WATT was used from huawei_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.WATT instead, please report it to the author of the 'huawei_solar' custom integration