Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Motionblinds BLE integration to Motionblinds Bluetooth #114584

Merged
merged 3 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions homeassistant/components/motionblinds_ble/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Motionblinds BLE integration."""
"""Motionblinds Bluetooth integration."""

from __future__ import annotations

Expand Down Expand Up @@ -34,9 +34,9 @@


async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up Motionblinds BLE integration."""
"""Set up Motionblinds Bluetooth integration."""

_LOGGER.debug("Setting up Motionblinds BLE integration")
_LOGGER.debug("Setting up Motionblinds Bluetooth integration")

# The correct time is needed for encryption
_LOGGER.debug("Setting timezone for encryption: %s", hass.config.time_zone)
Expand All @@ -46,7 +46,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:


async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up Motionblinds BLE device from a config entry."""
"""Set up Motionblinds Bluetooth device from a config entry."""

_LOGGER.debug("(%s) Setting up device", entry.data[CONF_MAC_CODE])

Expand Down Expand Up @@ -94,7 +94,7 @@ def async_update_ble_device(


async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Unload Motionblinds BLE device from a config entry."""
"""Unload Motionblinds Bluetooth device from a config entry."""

if unload_ok := await hass.config_entries.async_unload_platforms(entry, PLATFORMS):
hass.data[DOMAIN].pop(entry.entry_id)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/motionblinds_ble/button.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Button entities for the Motionblinds BLE integration."""
"""Button entities for the Motionblinds Bluetooth integration."""

from __future__ import annotations

Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/motionblinds_ble/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Config flow for Motionblinds BLE integration."""
"""Config flow for Motionblinds Bluetooth integration."""

from __future__ import annotations

Expand Down Expand Up @@ -38,7 +38,7 @@


class FlowHandler(ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Motionblinds BLE."""
"""Handle a config flow for Motionblinds Bluetooth."""

def __init__(self) -> None:
"""Initialize a ConfigFlow."""
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/motionblinds_ble/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Constants for the Motionblinds BLE integration."""
"""Constants for the Motionblinds Bluetooth integration."""

ATTR_CONNECT = "connect"
ATTR_DISCONNECT = "disconnect"
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/motionblinds_ble/cover.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Cover entities for the Motionblinds BLE integration."""
"""Cover entities for the Motionblinds Bluetooth integration."""

from __future__ import annotations

Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/motionblinds_ble/entity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Base entities for the Motionblinds BLE integration."""
"""Base entities for the Motionblinds Bluetooth integration."""

import logging

Expand All @@ -16,7 +16,7 @@


class MotionblindsBLEEntity(Entity):
"""Base class for Motionblinds BLE entities."""
"""Base class for Motionblinds Bluetooth entities."""

_attr_has_entity_name = True
_attr_should_poll = False
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/motionblinds_ble/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"domain": "motionblinds_ble",
"name": "Motionblinds BLE",
"name": "Motionblinds Bluetooth",
"bluetooth": [
{
"local_name": "MOTION_*",
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/motionblinds_ble/select.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Select entities for the Motionblinds BLE integration."""
"""Select entities for the Motionblinds Bluetooth integration."""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/generated/integrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -3754,7 +3754,7 @@
"integration_type": "device",
"config_flow": true,
"iot_class": "assumed_state",
"name": "Motionblinds BLE"
"name": "Motionblinds Bluetooth"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion tests/components/motionblinds_ble/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"""Tests for the Motionblinds BLE integration."""
"""Tests for the Motionblinds Bluetooth integration."""
2 changes: 1 addition & 1 deletion tests/components/motionblinds_ble/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Setup the MotionBlinds BLE tests."""
"""Setup the Motionblinds Bluetooth tests."""

from unittest.mock import AsyncMock, Mock, patch

Expand Down
2 changes: 1 addition & 1 deletion tests/components/motionblinds_ble/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Test the MotionBlinds BLE config flow."""
"""Test the Motionblinds Bluetooth config flow."""

from unittest.mock import patch

Expand Down