Bump pysma to 0.7.1 (#80601)
* Bump pysma to 0.7.0 * Bump pysma to 0.7.1 * Fix test
This commit is contained in:
parent
8974657ba9
commit
f21fabba17
4 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
"name": "SMA Solar",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/sma",
|
||||
"requirements": ["pysma==0.6.12"],
|
||||
"requirements": ["pysma==0.7.1"],
|
||||
"codeowners": ["@kellerza", "@rklomp"],
|
||||
"iot_class": "local_polling",
|
||||
"loggers": ["pysma"]
|
||||
|
|
|
@ -1887,7 +1887,7 @@ pysignalclirestapi==0.3.18
|
|||
pyskyqhub==0.1.4
|
||||
|
||||
# homeassistant.components.sma
|
||||
pysma==0.6.12
|
||||
pysma==0.7.1
|
||||
|
||||
# homeassistant.components.smappee
|
||||
pysmappee==0.2.29
|
||||
|
|
|
@ -1328,7 +1328,7 @@ pysiaalarm==3.0.2
|
|||
pysignalclirestapi==0.3.18
|
||||
|
||||
# homeassistant.components.sma
|
||||
pysma==0.6.12
|
||||
pysma==0.7.1
|
||||
|
||||
# homeassistant.components.smappee
|
||||
pysmappee==0.2.29
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
"""Fixtures for sma tests."""
|
||||
from unittest.mock import patch
|
||||
|
||||
from pysma.const import DEVCLASS_INVERTER
|
||||
from pysma.const import GENERIC_SENSORS
|
||||
from pysma.definitions import sensor_map
|
||||
from pysma.sensor import Sensors
|
||||
import pytest
|
||||
|
@ -32,7 +32,7 @@ async def init_integration(hass, mock_config_entry):
|
|||
mock_config_entry.add_to_hass(hass)
|
||||
|
||||
with patch("pysma.SMA.read"), patch(
|
||||
"pysma.SMA.get_sensors", return_value=Sensors(sensor_map[DEVCLASS_INVERTER])
|
||||
"pysma.SMA.get_sensors", return_value=Sensors(sensor_map[GENERIC_SENSORS])
|
||||
):
|
||||
await hass.config_entries.async_setup(mock_config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
|
Loading…
Add table
Reference in a new issue