diff --git a/README.md b/README.md
index f0df557..169387d 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@

[](https://github.com/custom-components/hacs)
-[](https://www.home-assistant.io)
+[](https://www.home-assistant.io)

[](https://opensource.org/licenses/mit)
@@ -37,14 +37,14 @@ You can install this card by following one of the guides below:
[](https://my.home-assistant.io/redirect/config_flow_start?domain=google-contacts)
-Google Contacts integreation uses configuration subentries for configuring the sensors.
+Google Contacts integration uses configuration subentries for configuring the sensors.
1. Setup the configuration once per user you want contact information from
2. Create one or multiple configuration subentries using the users contacts
### Calendar Subentry
___
The calendar subentry creates a calendar with dates relevant to your contacts (ie. Birthdays and/or Anniversaries)
-This is similar to the builtin google birthdays calendar, but gives a little more flexability in filtering and how it is displayed
+This is similar to the builtin google birthdays calendar, but gives a little more flexibility in filtering and how it is displayed
#### Configuration options:
| Option | Description |
diff --git a/custom_components/google_contacts/__init__.py b/custom_components/google_contacts/__init__.py
index f05e56e..cb86a83 100644
--- a/custom_components/google_contacts/__init__.py
+++ b/custom_components/google_contacts/__init__.py
@@ -1,4 +1,4 @@
-"""The google-contacts-calendar integration."""
+"""The google-contacts integration."""
from __future__ import annotations
diff --git a/custom_components/google_contacts/api.py b/custom_components/google_contacts/api.py
index d8a24ff..b14e68f 100644
--- a/custom_components/google_contacts/api.py
+++ b/custom_components/google_contacts/api.py
@@ -1,4 +1,4 @@
-"""API for google-contacts-calendar bound to Home Assistant OAuth."""
+"""API for google-contacts bound to Home Assistant OAuth."""
from abc import ABC, abstractmethod
from dataclasses import dataclass
@@ -435,14 +435,14 @@ def build_response(
class GoogleContactsApi:
- """Provide google-contacts-calendar authentication tied to an OAuth2 based config entry."""
+ """Provide google-contacts authentication tied to an OAuth2 based config entry."""
def __init__(
self,
hass: HomeAssistant,
oauth_session: config_entry_oauth2_flow.OAuth2Session,
) -> None:
- """Initialize google-contacts-calendar auth."""
+ """Initialize google-contacts auth."""
self._hass = hass
self._oauth_session = oauth_session
diff --git a/custom_components/google_contacts/application_credentials.py b/custom_components/google_contacts/application_credentials.py
index a378c1e..ec20689 100644
--- a/custom_components/google_contacts/application_credentials.py
+++ b/custom_components/google_contacts/application_credentials.py
@@ -1,4 +1,4 @@
-"""Application credentials platform for the google-contacts-calendar integration."""
+"""Application credentials platform for the google-contacts integration."""
from homeassistant.components.application_credentials import AuthorizationServer
from homeassistant.core import HomeAssistant
diff --git a/custom_components/google_contacts/config_flow.py b/custom_components/google_contacts/config_flow.py
index 580c06e..43fb5c5 100644
--- a/custom_components/google_contacts/config_flow.py
+++ b/custom_components/google_contacts/config_flow.py
@@ -21,7 +21,7 @@
from homeassistant.helpers import config_entry_oauth2_flow
from homeassistant.helpers.entity import async_generate_entity_id
-from .const import DOMAIN, OAUTH2_SCOPES
+from .const import DOMAIN, LOGGER_NAME, OAUTH2_SCOPES
from .schema import OPTIONS_SCHEMA as CONFIG_SCHEMA
ENTITY_ID_FORMAT = Platform.CALENDAR + ".{}"
@@ -37,7 +37,7 @@ class OAuth2FlowHandler(
@property
def logger(self) -> logging.Logger:
"""Return logger."""
- return logging.getLogger(__name__)
+ return logging.getLogger(LOGGER_NAME)
@property
def extra_authorize_data(self) -> dict[str, Any]:
diff --git a/custom_components/google_contacts/const.py b/custom_components/google_contacts/const.py
index fd8812d..a28991f 100644
--- a/custom_components/google_contacts/const.py
+++ b/custom_components/google_contacts/const.py
@@ -1,4 +1,4 @@
-"""Constants for the google-contacts-calendar integration."""
+"""Constants for the google-contacts integration."""
DOMAIN = "google_contacts"
@@ -8,3 +8,5 @@
"https://www.googleapis.com/auth/contacts.readonly",
"https://www.googleapis.com/auth/userinfo.profile",
]
+
+LOGGER_NAME = DOMAIN
diff --git a/custom_components/google_contacts/coordinator.py b/custom_components/google_contacts/coordinator.py
index 705a58f..7d35c09 100644
--- a/custom_components/google_contacts/coordinator.py
+++ b/custom_components/google_contacts/coordinator.py
@@ -22,12 +22,12 @@
GoogleContactsApiError,
GroupsResponse,
)
-from .const import DOMAIN
+from .const import DOMAIN, LOGGER_NAME
from .schema import Options
type GoogleContactsConfigEntry = ConfigEntry[ContactsUpdateCoordinator]
-_LOGGER = logging.getLogger(__name__)
+_LOGGER = logging.getLogger(LOGGER_NAME)
UPDATE_INTERVAL: Final = timedelta(minutes=30)
TIMEOUT = 10
diff --git a/custom_components/google_contacts/manifest.json b/custom_components/google_contacts/manifest.json
index 21f7a5a..fdcf76d 100644
--- a/custom_components/google_contacts/manifest.json
+++ b/custom_components/google_contacts/manifest.json
@@ -4,14 +4,18 @@
"codeowners": [
"@SirIndubitable"
],
+ "integration_type": "service",
"config_flow": true,
"dependencies": [
"application_credentials"
],
- "documentation": "https://www.home-assistant.io/integrations/google_contacts_calendar",
+ "documentation": "https://github.com/SirIndubitable/ha-google-contacts",
"iot_class": "cloud_polling",
+ "loggers": [
+ "google_contacts"
+ ],
"requirements": [
"google-api-python-client==2.71.0"
],
- "version": "0.1.0"
+ "version": "0.1.2"
}