1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add tests for Netatmo sensor (#46393)

* Add tests for Netatmo sensor

* Fix coveragerc

* Remove freezegun dependency

* Use f-strings instead of string concatenation

* Update tests/components/netatmo/test_sensor.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Address comment on config options test

* Replace deprecated call to async_get_registry()

* Fix public weather sensor update test

* Clean up

* Prevent division by zero

Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Tobias Sauerwein
2021-03-24 07:17:51 +01:00
committed by GitHub
parent 3dec394cad
commit 0d699bb768
7 changed files with 844 additions and 14 deletions

View File

@@ -29,6 +29,8 @@ COMMON_RESPONSE = {
"user": {"id": "91763b24c43d3e344f424e8b", "email": "john@doe.com"},
}
TEST_TIME = 1559347200.0
def fake_post_request(**args):
"""Return fake data."""