Skip to content

Commit 58c0f7b

Browse files
committed
Fix capitalizations of MagIQtouch
1 parent 0ff0406 commit 58c0f7b

File tree

8 files changed

+39
-39
lines changed

8 files changed

+39
-39
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![hacs][hacsbadge]][hacs]
55
[![Project Maintenance][maintenance-shield]][user_profile]
66

7-
_Component to integrate with [MagiQtouch heating/cooling controllers][ha_magiqtouch]._
7+
_Component to integrate with [MagIQtouch heating/cooling controllers][ha_magiqtouch]._
88

99
**This component will set up the following platforms.**
1010

custom_components/magiqtouch/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""The Seeley MagiQtouch integration."""
1+
"""The Seeley MagIQtouch integration."""
22
import sys
33
from pathlib import Path
44

@@ -16,7 +16,7 @@
1616
from homeassistant.helpers.update_coordinator import (
1717
DataUpdateCoordinator,
1818
)
19-
from .magiqtouch import MagiQtouch_Driver
19+
from .magiqtouch import MagIQtouch_Driver
2020
from .const import (
2121
SCAN_INTERVAL,
2222
DOMAIN,
@@ -38,22 +38,22 @@
3838

3939

4040
async def async_setup(hass: HomeAssistant, config: dict):
41-
"""Set up the Seeley MagiQtouch component."""
41+
"""Set up the Seeley MagIQtouch component."""
4242
return True
4343

4444

4545
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
46-
"""Set up Seeley MagiQtouch from a config entry."""
46+
"""Set up Seeley MagIQtouch from a config entry."""
4747
username = entry.data[CONF.USERNAME]
4848
password = entry.data[CONF.PASSWORD]
4949

50-
driver = MagiQtouch_Driver(
50+
driver = MagIQtouch_Driver(
5151
user=username,
5252
password=password,
5353
hass=hass,
5454
config_entry=entry,
5555
)
56-
coordinator = MagiQtouchCoordinator(hass, driver)
56+
coordinator = MagIQtouchCoordinator(hass, driver)
5757

5858
hass.data.setdefault(DOMAIN, {})
5959
hass.data[DOMAIN][entry.entry_id] = dict(
@@ -110,17 +110,17 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry):
110110
return unload_ok
111111

112112

113-
class MagiQtouchCoordinator(DataUpdateCoordinator):
114-
"""An update coordinator that handles updates for the entire MagiQtouch integration."""
113+
class MagIQtouchCoordinator(DataUpdateCoordinator):
114+
"""An update coordinator that handles updates for the entire MagIQtouch integration."""
115115

116-
controller: MagiQtouch_Driver
116+
controller: MagIQtouch_Driver
117117

118118
def __init__(self, hass, controller):
119119
"""Initialize my coordinator."""
120120
super().__init__(
121121
hass,
122122
_LOGGER,
123-
name="MagiQtouch",
123+
name="MagIQtouch",
124124
update_interval=SCAN_INTERVAL,
125125
)
126126
self.controller = controller

custom_components/magiqtouch/climate.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Platform for climate integration."""
22
import logging
33

4-
from . import MagiQtouchCoordinator
5-
from .magiqtouch import MagiQtouch_Driver
4+
from . import MagIQtouchCoordinator
5+
from .magiqtouch import MagIQtouch_Driver
66
from .structures import UnitDetails
77

88
import voluptuous as vol
@@ -76,33 +76,33 @@ async def async_setup_entry(
7676
async_add_entities: AddEntitiesCallback,
7777
) -> None:
7878
"""Set up device based on a config entry."""
79-
driver: MagiQtouch_Driver = hass.data[DOMAIN][entry.entry_id]["driver"]
80-
coordinator: MagiQtouchCoordinator = hass.data[DOMAIN][entry.entry_id]["coordinator"]
79+
driver: MagIQtouch_Driver = hass.data[DOMAIN][entry.entry_id]["driver"]
80+
coordinator: MagIQtouchCoordinator = hass.data[DOMAIN][entry.entry_id]["coordinator"]
8181

8282
async_add_entities(
83-
[MagiQtouch(entry.entry_id, driver, coordinator, zone) for zone in driver.zone_list],
83+
[MagIQtouch(entry.entry_id, driver, coordinator, zone) for zone in driver.zone_list],
8484
update_before_add=False,
8585
)
8686

8787

88-
class MagiQtouch(CoordinatorEntity, ClimateEntity):
88+
class MagIQtouch(CoordinatorEntity, ClimateEntity):
8989
"""Representation of an MagIQtouch Thermostat."""
9090

9191
def __init__(
9292
self,
9393
entry_id,
94-
controller: MagiQtouch_Driver,
95-
coordinator: MagiQtouchCoordinator,
94+
controller: MagIQtouch_Driver,
95+
coordinator: MagIQtouchCoordinator,
9696
zone=None,
9797
):
98-
self._attr_name = "MagiQtouch"
98+
self._attr_name = "MagIQtouch"
9999
super().__init__(coordinator)
100100
self.controller = controller
101101
self.coordinator = coordinator
102102
self._attr_device_info = {
103103
"identifiers": {("magiqtouch", self.controller.device_id)},
104104
"name": self.controller.device_name,
105-
"manufacturer": "Seeley",
105+
"manufacturer": "alelec",
106106
# "model": "<installed model>",
107107
}
108108

@@ -120,8 +120,8 @@ def __init__(
120120
def name(self):
121121
"""Return the name of the device."""
122122
if not self.master_zone:
123-
return f"MagiQtouch - {self.controller.get_zone_name(self.zone)}"
124-
return "MagiQtouch"
123+
return f"MagIQtouch - {self.controller.get_zone_name(self.zone)}"
124+
return "MagIQtouch"
125125

126126
@property
127127
def unique_id(self) -> str:

custom_components/magiqtouch/config_flow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Config flow for Seeley MagiQtouch integration."""
1+
"""Config flow for Seeley MagIQtouch integration."""
22
import logging
33
from typing import Any, Dict
44

@@ -7,7 +7,7 @@
77
from homeassistant import config_entries, core, exceptions
88
from homeassistant.core import callback
99

10-
from .magiqtouch import MagiQtouch_Driver
10+
from .magiqtouch import MagIQtouch_Driver
1111
from .const import DOMAIN, CONF # pylint:disable=unused-import
1212

1313
_LOGGER = logging.getLogger(__name__)
@@ -32,7 +32,7 @@ async def validate_input(hass: core.HomeAssistant, data):
3232
# your_validate_func, data[CONF.USERNAME], data[CONF.PASSWORD]
3333
# )
3434

35-
driver = MagiQtouch_Driver(user=data[CONF.USERNAME], password=data[CONF.PASSWORD])
35+
driver = MagIQtouch_Driver(user=data[CONF.USERNAME], password=data[CONF.PASSWORD])
3636

3737
try:
3838
if not await driver.login():
@@ -52,7 +52,7 @@ async def validate_input(hass: core.HomeAssistant, data):
5252

5353

5454
class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): # type: ignore[call-arg]
55-
"""Handle a config flow for Seeley MagiQtouch."""
55+
"""Handle a config flow for Seeley MagIQtouch."""
5656

5757
VERSION = 1
5858
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL

custom_components/magiqtouch/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Constants for the Seeley MagiQtouch integration."""
1+
"""Constants for the Seeley MagIQtouch integration."""
22
from datetime import timedelta
33
from collections import namedtuple
44
from homeassistant.const import (

custom_components/magiqtouch/magiqtouch.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
_LOGGER = logging.getLogger("magiqtouch")
5555

5656

57-
class MagiQtouch_Driver:
57+
class MagIQtouch_Driver:
5858
def __init__(self, user, password, hass=None, config_entry=None):
5959
self._password = password
6060
self._user = user
@@ -333,7 +333,7 @@ def set_system_state(self, state):
333333
{"action": "status", "params": {"device": self._mac_address}}
334334
)
335335
self.device_id = f"magiqtouch_{self._mac_address}"
336-
self.device_name = "MagiQtouch"
336+
self.device_name = "MagIQtouch"
337337
if self.config_entry:
338338
self.device_name = self.config_entry.data.get(CONF.TITLE, self.device_name)
339339

@@ -431,7 +431,7 @@ def state_checker(state, units, zone, field, value):
431431
if getattr(state, field) != value:
432432
return False
433433
for u in check:
434-
if not MagiQtouch_Driver.zone_match(u, zone):
434+
if not MagIQtouch_Driver.zone_match(u, zone):
435435
continue
436436
if getattr(u, field) != value:
437437
return False
@@ -748,7 +748,7 @@ def main():
748748
user = args.email
749749
password = args.password
750750

751-
m = MagiQtouch_Driver(user=user, password=password)
751+
m = MagIQtouch_Driver(user=user, password=password)
752752
m.set_verbose(True, initial=True)
753753

754754
loop = asyncio.get_event_loop()

custom_components/magiqtouch/sensor.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22

3-
from . import MagiQtouchCoordinator
4-
from .magiqtouch import MagiQtouch_Driver
3+
from . import MagIQtouchCoordinator
4+
from .magiqtouch import MagIQtouch_Driver
55

66

77
# Import the device class from the component that you want to support
@@ -33,8 +33,8 @@ async def async_setup_entry(
3333
async_add_entities: AddEntitiesCallback,
3434
) -> None:
3535
"""Set up device based on a config entry."""
36-
driver: MagiQtouch_Driver = hass.data[DOMAIN][entry.entry_id]["driver"]
37-
coordinator: MagiQtouchCoordinator = hass.data[DOMAIN][entry.entry_id]["coordinator"]
36+
driver: MagIQtouch_Driver = hass.data[DOMAIN][entry.entry_id]["driver"]
37+
coordinator: MagIQtouchCoordinator = hass.data[DOMAIN][entry.entry_id]["coordinator"]
3838

3939
sensors = []
4040

@@ -66,8 +66,8 @@ class TemperatureSensor(CoordinatorEntity, SensorEntity):
6666
def __init__(
6767
self,
6868
label,
69-
controller: MagiQtouch_Driver,
70-
coordinator: MagiQtouchCoordinator,
69+
controller: MagIQtouch_Driver,
70+
coordinator: MagIQtouchCoordinator,
7171
data_callback,
7272
zone=None,
7373
):

hacs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "MagiQtouch",
2+
"name": "MagIQtouch",
33
"hacs": "1.6.0",
44
"homeassistant": "0.118.0",
55
"hide_default_branch": false

0 commit comments

Comments
 (0)