Skip to content

Commit

Permalink
Do not inherit from Device on gatewaydevices
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed Dec 14, 2021
1 parent 9796274 commit f893ce0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions miio/gateway/gatewaydevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import logging
from typing import TYPE_CHECKING

from ..device import Device
from ..exceptions import DeviceException

_LOGGER = logging.getLogger(__name__)
Expand All @@ -13,17 +12,12 @@
from .gateway import Gateway


class GatewayDevice(Device):
class GatewayDevice:
"""GatewayDevice class Specifies the init method for all gateway device
functionalities."""

def __init__(
self,
ip: str = None,
token: str = None,
start_id: int = 0,
debug: int = 0,
lazy_discover: bool = True,
parent: "Gateway" = None,
) -> None:
if parent is None:
Expand All @@ -32,5 +26,3 @@ def __init__(
)

self._gateway = parent
self.ip = self._gateway.ip
self.token = self._gateway.token

0 comments on commit f893ce0

Please sign in to comment.