Rename WaterHeaterDevice to WaterHeaterEntity (#34675)
* Rename WaterHeaterDevice to WaterHeaterEntity * Fix stale name Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
1cfa46d80b
commit
f3d79104a7
12 changed files with 45 additions and 21 deletions
12
tests/components/water_heater/test_init.py
Normal file
12
tests/components/water_heater/test_init.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
"""Tests for Water heater."""
|
||||
from homeassistant.components import water_heater
|
||||
|
||||
|
||||
def test_deprecated_base_class(caplog):
|
||||
"""Test deprecated base class."""
|
||||
|
||||
class CustomWaterHeater(water_heater.WaterHeaterDevice):
|
||||
pass
|
||||
|
||||
CustomWaterHeater()
|
||||
assert "WaterHeaterDevice is deprecated, modify CustomWaterHeater" in caplog.text
|
Loading…
Add table
Add a link
Reference in a new issue