Skip to content

Commit

Permalink
Update entity.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RenierM26 committed Jan 8, 2023
1 parent ecf8193 commit 40a3fe3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/ezviz_cloud/entity.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""An abstract class common to all Ezviz entities."""
"""An abstract class common to all EZVIZ entities."""
from __future__ import annotations

from typing import Any

from homeassistant.helpers import device_registry
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC
from homeassistant.helpers.entity import DeviceInfo, Entity
from homeassistant.helpers.update_coordinator import CoordinatorEntity

Expand All @@ -12,7 +12,7 @@


class EzvizEntity(CoordinatorEntity[EzvizDataUpdateCoordinator], Entity):
"""Generic entity encapsulating common features of Ezviz device."""
"""Generic entity encapsulating common features of EZVIZ device."""

def __init__(
self,
Expand All @@ -26,7 +26,7 @@ def __init__(
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, serial)},
connections={
(device_registry.CONNECTION_NETWORK_MAC, self.data["mac_address"]),
(CONNECTION_NETWORK_MAC, self.data["mac_address"]),
},
manufacturer=MANUFACTURER,
model=self.data["device_sub_category"],
Expand Down

0 comments on commit 40a3fe3

Please sign in to comment.