mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-02-05 00:23:52 +01:00
Provide unit hint for system channel type atmospheric-humidity (#4170)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
619762a297
commit
258b0991d8
@ -340,7 +340,7 @@ public class DefaultSystemChannelTypeProvider implements ChannelTypeProvider {
|
|||||||
*/
|
*/
|
||||||
public static final ChannelType SYSTEM_ATMOSPHERIC_HUMIDITY = ChannelTypeBuilder
|
public static final ChannelType SYSTEM_ATMOSPHERIC_HUMIDITY = ChannelTypeBuilder
|
||||||
.state(SYSTEM_CHANNEL_TYPE_UID_ATMOSPHERIC_HUMIDITY, "Atmospheric Humidity", "Number:Dimensionless")
|
.state(SYSTEM_CHANNEL_TYPE_UID_ATMOSPHERIC_HUMIDITY, "Atmospheric Humidity", "Number:Dimensionless")
|
||||||
.withDescription("Current atmospheric relative humidity").withCategory("Humidity")
|
.withUnitHint("%").withDescription("Current atmospheric relative humidity").withCategory("Humidity")
|
||||||
.withStateDescriptionFragment(
|
.withStateDescriptionFragment(
|
||||||
StateDescriptionFragmentBuilder.create().withReadOnly(true).withPattern("%.0f %%").build())
|
StateDescriptionFragmentBuilder.create().withReadOnly(true).withPattern("%.0f %%").build())
|
||||||
.withTags(List.of("Measurement", "Humidity")).build();
|
.withTags(List.of("Measurement", "Humidity")).build();
|
||||||
|
Loading…
Reference in New Issue
Block a user