Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set zwave_js climate precision to tenths for F #48133

Merged
merged 1 commit into from
Mar 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: set climate precision to tenths for more accurate display and re…
…porting
  • Loading branch information
chilicheech committed Mar 19, 2021
commit af71c577742cddeea8af71f95e661113e21bdc3b
12 changes: 11 additions & 1 deletion homeassistant/components/zwave_js/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@
SUPPORT_TARGET_TEMPERATURE_RANGE,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS, TEMP_FAHRENHEIT
from homeassistant.const import (
ATTR_TEMPERATURE,
PRECISION_TENTHS,
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
)
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect

Expand Down Expand Up @@ -228,6 +233,11 @@ def temperature_unit(self) -> str:
return TEMP_FAHRENHEIT
return TEMP_CELSIUS

@property
def precision(self) -> float:
"""Return the precision of 0.1."""
return PRECISION_TENTHS

@property
def hvac_mode(self) -> str:
"""Return hvac operation ie. heat, cool mode."""
Expand Down