Compare commits

..

1 Commits

Author SHA1 Message Date
J. Nick Koston
18f8b28904 Bump aioesphomeapi to 41.9.0
changelog: https://github.com/esphome/aioesphomeapi/compare/v41.6.0...v41.9.0
2025-09-23 15:07:39 -05:00
16 changed files with 25 additions and 26 deletions

View File

@@ -17,7 +17,7 @@
"mqtt": ["esphome/discover/#"],
"quality_scale": "platinum",
"requirements": [
"aioesphomeapi==41.6.0",
"aioesphomeapi==41.9.0",
"esphome-dashboard-api==1.3.0",
"bleak-esphome==3.3.0"
],

View File

@@ -148,7 +148,7 @@ from .const import (
DEFAULT_HVAC_ON_VALUE,
DEFAULT_SCAN_INTERVAL,
DEFAULT_TEMP_UNIT,
DOMAIN,
MODBUS_DOMAIN as DOMAIN,
RTUOVERTCP,
SERIAL,
TCP,

View File

@@ -159,7 +159,6 @@ DEFAULT_TEMP_UNIT = "C"
DEFAULT_HVAC_ON_VALUE = 1
DEFAULT_HVAC_OFF_VALUE = 0
MODBUS_DOMAIN = "modbus"
DOMAIN = "modbus"
ACTIVE_SCAN_INTERVAL = 2 # limit to force an extra update

View File

@@ -56,7 +56,7 @@ from .const import (
CONF_STOPBITS,
DEFAULT_HUB,
DEVICE_ID,
DOMAIN,
MODBUS_DOMAIN as DOMAIN,
PLATFORMS,
RTUOVERTCP,
SERIAL,

View File

@@ -36,7 +36,7 @@ from .const import (
CONF_VIRTUAL_COUNT,
DEFAULT_HUB,
DEFAULT_SCAN_INTERVAL,
DOMAIN,
MODBUS_DOMAIN as DOMAIN,
PLATFORMS,
SERIAL,
DataType,

2
requirements_all.txt generated
View File

@@ -247,7 +247,7 @@ aioelectricitymaps==1.1.1
aioemonitor==1.0.5
# homeassistant.components.esphome
aioesphomeapi==41.6.0
aioesphomeapi==41.9.0
# homeassistant.components.flo
aioflo==2021.11.0

View File

@@ -235,7 +235,7 @@ aioelectricitymaps==1.1.1
aioemonitor==1.0.5
# homeassistant.components.esphome
aioesphomeapi==41.6.0
aioesphomeapi==41.9.0
# homeassistant.components.flo
aioflo==2021.11.0

View File

@@ -11,7 +11,7 @@ from freezegun.api import FrozenDateTimeFactory
from pymodbus.exceptions import ModbusException
import pytest
from homeassistant.components.modbus.const import DOMAIN, TCP
from homeassistant.components.modbus.const import MODBUS_DOMAIN as DOMAIN, TCP
from homeassistant.const import (
CONF_ADDRESS,
CONF_HOST,

View File

@@ -13,7 +13,7 @@ from homeassistant.components.modbus.const import (
CONF_INPUT_TYPE,
CONF_SLAVE_COUNT,
CONF_VIRTUAL_COUNT,
DOMAIN,
MODBUS_DOMAIN,
)
from homeassistant.const import (
ATTR_ENTITY_ID,
@@ -439,7 +439,7 @@ async def test_no_discovery_info_binary_sensor(
assert await async_setup_component(
hass,
SENSOR_DOMAIN,
{SENSOR_DOMAIN: {CONF_PLATFORM: DOMAIN}},
{SENSOR_DOMAIN: {CONF_PLATFORM: MODBUS_DOMAIN}},
)
await hass.async_block_till_done()
assert SENSOR_DOMAIN in hass.config.components

View File

@@ -84,7 +84,7 @@ from homeassistant.components.modbus.const import (
CONF_TARGET_TEMP,
CONF_TARGET_TEMP_WRITE_REGISTERS,
CONF_WRITE_REGISTERS,
DOMAIN,
MODBUS_DOMAIN,
DataType,
)
from homeassistant.const import (
@@ -1695,7 +1695,7 @@ async def test_no_discovery_info_climate(
assert await async_setup_component(
hass,
CLIMATE_DOMAIN,
{CLIMATE_DOMAIN: {CONF_PLATFORM: DOMAIN}},
{CLIMATE_DOMAIN: {CONF_PLATFORM: MODBUS_DOMAIN}},
)
await hass.async_block_till_done()
assert CLIMATE_DOMAIN in hass.config.components

View File

@@ -16,7 +16,7 @@ from homeassistant.components.modbus.const import (
CONF_STATE_OPENING,
CONF_STATUS_REGISTER,
CONF_STATUS_REGISTER_TYPE,
DOMAIN,
MODBUS_DOMAIN,
)
from homeassistant.const import (
ATTR_ENTITY_ID,
@@ -305,7 +305,7 @@ async def test_no_discovery_info_cover(
assert await async_setup_component(
hass,
COVER_DOMAIN,
{COVER_DOMAIN: {CONF_PLATFORM: DOMAIN}},
{COVER_DOMAIN: {CONF_PLATFORM: MODBUS_DOMAIN}},
)
await hass.async_block_till_done()
assert COVER_DOMAIN in hass.config.components

View File

@@ -17,7 +17,7 @@ from homeassistant.components.modbus.const import (
CONF_STATE_ON,
CONF_VERIFY,
CONF_WRITE_TYPE,
DOMAIN,
MODBUS_DOMAIN,
)
from homeassistant.const import (
ATTR_ENTITY_ID,
@@ -270,7 +270,7 @@ async def test_fan_service_turn(
) -> None:
"""Run test for service turn_on/turn_off."""
assert DOMAIN in hass.config.components
assert MODBUS_DOMAIN in hass.config.components
assert hass.states.get(ENTITY_ID).state == STATE_OFF
await hass.services.async_call(
@@ -354,7 +354,7 @@ async def test_no_discovery_info_fan(
assert await async_setup_component(
hass,
FAN_DOMAIN,
{FAN_DOMAIN: {CONF_PLATFORM: DOMAIN}},
{FAN_DOMAIN: {CONF_PLATFORM: MODBUS_DOMAIN}},
)
await hass.async_block_till_done()
assert FAN_DOMAIN in hass.config.components

View File

@@ -64,7 +64,7 @@ from homeassistant.components.modbus.const import (
CONF_VIRTUAL_COUNT,
DEFAULT_SCAN_INTERVAL,
DEVICE_ID,
DOMAIN,
MODBUS_DOMAIN as DOMAIN,
RTUOVERTCP,
SERIAL,
SERVICE_STOP,

View File

@@ -22,7 +22,7 @@ from homeassistant.components.modbus.const import (
CONF_STATE_ON,
CONF_VERIFY,
CONF_WRITE_TYPE,
DOMAIN,
MODBUS_DOMAIN,
)
from homeassistant.const import (
ATTR_ENTITY_ID,
@@ -311,7 +311,7 @@ async def test_light_service_turn(
) -> None:
"""Run test for service turn_on/turn_off."""
assert DOMAIN in hass.config.components
assert MODBUS_DOMAIN in hass.config.components
assert hass.states.get(ENTITY_ID).state == STATE_OFF
await hass.services.async_call(
LIGHT_DOMAIN, SERVICE_TURN_ON, service_data={ATTR_ENTITY_ID: ENTITY_ID}
@@ -535,7 +535,7 @@ async def test_no_discovery_info_light(
assert await async_setup_component(
hass,
LIGHT_DOMAIN,
{LIGHT_DOMAIN: {CONF_PLATFORM: DOMAIN}},
{LIGHT_DOMAIN: {CONF_PLATFORM: MODBUS_DOMAIN}},
)
await hass.async_block_till_done()
assert LIGHT_DOMAIN in hass.config.components

View File

@@ -23,7 +23,7 @@ from homeassistant.components.modbus.const import (
CONF_SWAP_WORD_BYTE,
CONF_VIRTUAL_COUNT,
CONF_ZERO_SUPPRESS,
DOMAIN,
MODBUS_DOMAIN,
DataType,
)
from homeassistant.components.sensor import (
@@ -1482,7 +1482,7 @@ async def test_no_discovery_info_sensor(
assert await async_setup_component(
hass,
SENSOR_DOMAIN,
{SENSOR_DOMAIN: {CONF_PLATFORM: DOMAIN}},
{SENSOR_DOMAIN: {CONF_PLATFORM: MODBUS_DOMAIN}},
)
await hass.async_block_till_done()
assert SENSOR_DOMAIN in hass.config.components

View File

@@ -19,7 +19,7 @@ from homeassistant.components.modbus.const import (
CONF_STATE_ON,
CONF_VERIFY,
CONF_WRITE_TYPE,
DOMAIN,
MODBUS_DOMAIN,
)
from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN
from homeassistant.const import (
@@ -349,7 +349,7 @@ async def test_switch_service_turn(
mock_modbus,
) -> None:
"""Run test for service turn_on/turn_off."""
assert DOMAIN in hass.config.components
assert MODBUS_DOMAIN in hass.config.components
assert hass.states.get(ENTITY_ID).state == STATE_OFF
await hass.services.async_call(
@@ -520,7 +520,7 @@ async def test_no_discovery_info_switch(
assert await async_setup_component(
hass,
SWITCH_DOMAIN,
{SWITCH_DOMAIN: {CONF_PLATFORM: DOMAIN}},
{SWITCH_DOMAIN: {CONF_PLATFORM: MODBUS_DOMAIN}},
)
await hass.async_block_till_done()
assert SWITCH_DOMAIN in hass.config.components