Skip to content

Commit

Permalink
Remove credential logging
Browse files Browse the repository at this point in the history
  • Loading branch information
krasnoukhov committed Jan 29, 2024
1 parent 2307910 commit 4ab40d4
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions custom_components/smart_maic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The Smart MAIC integration."""

from __future__ import annotations

import logging
Expand Down Expand Up @@ -26,8 +27,6 @@

async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up Smart MAIC from a config entry."""
_LOGGER.debug(f"Smart MAIC entry data: {entry.data}")

if not await mqtt.async_wait_for_mqtt_client(hass):
raise ConfigEntryNotReady("MQTT is not available")

Expand Down
2 changes: 1 addition & 1 deletion custom_components/smart_maic/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for Smart MAIC integration."""

from __future__ import annotations

import logging
Expand Down Expand Up @@ -79,7 +80,6 @@ async def async_step_user(self, user_input=None):
await self.async_set_unique_id(data[DEVICE_ID])
self._abort_if_unique_id_configured()

_LOGGER.debug(f"Creating entry: {data}")
return self.async_create_entry(title=info["title"], data=data)
except ConnectionError:
errors["base"] = "cannot_connect"
Expand Down
1 change: 1 addition & 0 deletions custom_components/smart_maic/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for the Smart Maic integration."""

from homeassistant.const import CONF_IP_ADDRESS, CONF_PIN

DOMAIN = "smart_maic"
Expand Down
1 change: 1 addition & 0 deletions custom_components/smart_maic/coordinator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DataUpdateCoordinator for the Smart MAIC integration."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/smart_maic/entity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Base entity for the Smart MAIC integration."""

from __future__ import annotations

from homeassistant.config_entries import ConfigEntry
Expand Down
1 change: 1 addition & 0 deletions custom_components/smart_maic/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
The number component allows control of charging consumption.
"""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions custom_components/smart_maic/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
The sensor component creates multipe sensors regarding Smart MAIC status.
"""

from __future__ import annotations

from typing import cast
Expand Down
1 change: 1 addition & 0 deletions custom_components/smart_maic/smart_maic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Smart MAIC integration."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/smart_maic/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
The switch component allows control of charging dry switch.
"""

from __future__ import annotations

from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription
Expand Down

0 comments on commit 4ab40d4

Please sign in to comment.