diff --git a/homeassistant/components/axis/manifest.json b/homeassistant/components/axis/manifest.json index 0bc6afd292f..ea5b024e8fb 100644 --- a/homeassistant/components/axis/manifest.json +++ b/homeassistant/components/axis/manifest.json @@ -3,7 +3,7 @@ "name": "Axis", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/axis", - "requirements": ["axis==30"], + "requirements": ["axis==31"], "zeroconf": ["_axis-video._tcp.local."], "after_dependencies": ["mqtt"], "codeowners": ["@Kane610"] diff --git a/homeassistant/components/daikin/config_flow.py b/homeassistant/components/daikin/config_flow.py index 67411bfdff0..70553df2d91 100644 --- a/homeassistant/components/daikin/config_flow.py +++ b/homeassistant/components/daikin/config_flow.py @@ -128,8 +128,8 @@ class FlowHandler(config_entries.ConfigFlow): async def async_step_zeroconf(self, discovery_info): """Prepare configuration for a discovered Daikin device.""" - _LOGGER.debug("Zeroconf discovery_info: %s", discovery_info) - devices = Discovery.poll(discovery_info[CONF_HOST]) + _LOGGER.debug("Zeroconf user_input: %s", discovery_info) + devices = Discovery().poll(discovery_info[CONF_HOST]) await self.async_set_unique_id(next(iter(devices.values()))[KEY_MAC]) self._abort_if_unique_id_configured() self.host = discovery_info[CONF_HOST] diff --git a/homeassistant/components/llamalab_automate/notify.py b/homeassistant/components/llamalab_automate/notify.py index b4ed9a4e628..b94ffa099be 100644 --- a/homeassistant/components/llamalab_automate/notify.py +++ b/homeassistant/components/llamalab_automate/notify.py @@ -51,7 +51,7 @@ class AutomateNotificationService(BaseNotificationService): # Extract params from data dict data = dict(kwargs.get(ATTR_DATA) or {}) - priority = data.get(ATTR_PRIORITY, "Normal") + priority = data.get(ATTR_PRIORITY, "normal").lower() _LOGGER.debug( "Sending to: %s, %s, prio: %s", self._recipient, str(self._device), priority diff --git a/homeassistant/components/met/manifest.json b/homeassistant/components/met/manifest.json index baf2c1b7e3e..f4f32a5097f 100644 --- a/homeassistant/components/met/manifest.json +++ b/homeassistant/components/met/manifest.json @@ -3,6 +3,6 @@ "name": "Meteorologisk institutt (Met.no)", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/met", - "requirements": ["pyMetno==0.4.6"], + "requirements": ["pyMetno==0.5.1"], "codeowners": ["@danielhiversen"] } diff --git a/homeassistant/components/norway_air/manifest.json b/homeassistant/components/norway_air/manifest.json index 515d4eea6bb..d815482c3f0 100644 --- a/homeassistant/components/norway_air/manifest.json +++ b/homeassistant/components/norway_air/manifest.json @@ -2,6 +2,6 @@ "domain": "norway_air", "name": "Om Luftkvalitet i Norge (Norway Air)", "documentation": "https://www.home-assistant.io/integrations/norway_air", - "requirements": ["pyMetno==0.4.6"], + "requirements": ["pyMetno==0.5.1"], "codeowners": [] } diff --git a/homeassistant/components/yr/sensor.py b/homeassistant/components/yr/sensor.py index 58a04ce62a6..8d7a91f24da 100644 --- a/homeassistant/components/yr/sensor.py +++ b/homeassistant/components/yr/sensor.py @@ -21,7 +21,7 @@ from homeassistant.const import ( DEVICE_CLASS_HUMIDITY, DEVICE_CLASS_PRESSURE, DEVICE_CLASS_TEMPERATURE, - HTTP_OK, + HTTP_BAD_REQUEST, PRESSURE_HPA, SPEED_METERS_PER_SECOND, TEMP_CELSIUS, @@ -187,7 +187,7 @@ class YrData: websession = async_get_clientsession(self.hass) with async_timeout.timeout(10): resp = await websession.get(self._url, params=self._urlparams) - if resp.status != HTTP_OK: + if resp.status >= HTTP_BAD_REQUEST: try_again(f"{resp.url} returned {resp.status}") return text = await resp.text() diff --git a/homeassistant/const.py b/homeassistant/const.py index 093b39d6d1b..d73e7139ff6 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -1,7 +1,7 @@ """Constants used by Home Assistant components.""" MAJOR_VERSION = 0 MINOR_VERSION = 111 -PATCH_VERSION = "3" +PATCH_VERSION = "4" __short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}" __version__ = f"{__short_version__}.{PATCH_VERSION}" REQUIRED_PYTHON_VER = (3, 7, 0) diff --git a/requirements_all.txt b/requirements_all.txt index 9c4ada0268e..a0adb50f656 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -306,7 +306,7 @@ avea==1.4 avri-api==0.1.7 # homeassistant.components.axis -axis==30 +axis==31 # homeassistant.components.azure_event_hub azure-eventhub==5.1.0 @@ -1170,7 +1170,7 @@ pyHS100==0.3.5 # homeassistant.components.met # homeassistant.components.norway_air -pyMetno==0.4.6 +pyMetno==0.5.1 # homeassistant.components.rfxtrx pyRFXtrx==0.25 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 7dd4eea8262..c932bc872d1 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -147,7 +147,7 @@ async-upnp-client==0.14.13 av==8.0.2 # homeassistant.components.axis -axis==30 +axis==31 # homeassistant.components.homekit base36==0.1.1 @@ -503,7 +503,7 @@ pyHS100==0.3.5 # homeassistant.components.met # homeassistant.components.norway_air -pyMetno==0.4.6 +pyMetno==0.5.1 # homeassistant.components.rfxtrx pyRFXtrx==0.25 diff --git a/tests/components/daikin/test_config_flow.py b/tests/components/daikin/test_config_flow.py index 9702e5ad2c7..f8d13bdd355 100644 --- a/tests/components/daikin/test_config_flow.py +++ b/tests/components/daikin/test_config_flow.py @@ -45,9 +45,9 @@ def mock_daikin(): def mock_daikin_discovery(): """Mock pydaikin Discovery.""" with patch("homeassistant.components.daikin.config_flow.Discovery") as Discovery: - Discovery.poll = PropertyMock( - return_value={"127.0.01": {"mac": "AABBCCDDEEFF", "id": "test"}} - ) + Discovery().poll.return_value = { + "127.0.01": {"mac": "AABBCCDDEEFF", "id": "test"} + } yield Discovery