mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-28 06:07:08 +01:00
* SMHI Component * Clean up typos * Fixed default values first config to home location (tests will follow) * Fixed tests and removed unused function * Minor fixup after comments from @kane610 * add support for precipitation in forecast * Removed old async_step_init not needed.
12 lines
305 B
Python
12 lines
305 B
Python
"""Common test utilities."""
|
|
from unittest.mock import Mock
|
|
|
|
|
|
class AsyncMock(Mock):
|
|
"""Implements Mock async."""
|
|
|
|
# pylint: disable=W0235
|
|
async def __call__(self, *args, **kwargs):
|
|
"""Hack for async support for Mock."""
|
|
return super(AsyncMock, self).__call__(*args, **kwargs)
|