Allow a temperature sensor to be in K (#86073)
This commit is contained in:
parent
a2fb6fbaa8
commit
f327a247a0
3 changed files with 5 additions and 11 deletions
|
@ -22,7 +22,7 @@ async def test_device_class_units(hass: HomeAssistant, hass_ws_client) -> None:
|
|||
)
|
||||
msg = await client.receive_json()
|
||||
assert msg["success"]
|
||||
assert msg["result"] == {"units": unordered(["°F", "°C"])}
|
||||
assert msg["result"] == {"units": unordered(["°F", "°C", "K"])}
|
||||
|
||||
# Device class with units which number doesn't allow customizing & converting
|
||||
await client.send_json(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue