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:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user