mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Implement suggested_display_precision for ESPHome (#147849)
This commit is contained in:
@@ -375,7 +375,7 @@ async def test_deep_sleep_device(
|
||||
assert state.state == STATE_ON
|
||||
state = hass.states.get("sensor.test_my_sensor")
|
||||
assert state is not None
|
||||
assert state.state == "123"
|
||||
assert state.state == "123.0"
|
||||
|
||||
await mock_device.mock_disconnect(False)
|
||||
await hass.async_block_till_done()
|
||||
@@ -394,7 +394,7 @@ async def test_deep_sleep_device(
|
||||
assert state.state == STATE_ON
|
||||
state = hass.states.get("sensor.test_my_sensor")
|
||||
assert state is not None
|
||||
assert state.state == "123"
|
||||
assert state.state == "123.0"
|
||||
|
||||
await mock_device.mock_disconnect(True)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
Reference in New Issue
Block a user