diff --git a/tests/test_application.py b/tests/test_application.py index b5164a9..f693fe3 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -42,6 +42,11 @@ def test_model_detection(app): assert device.model == 'ZiGate USB-TTL {}'.format(FAKE_FIRMWARE_VERSION) +def test_zigate_device_initialized(app): + device = zigpy_zigate.zigbee.application.ZiGateDevice(app, 0, 0) + assert device.is_initialized + + @pytest.mark.asyncio async def test_form_network_success(app): app._api.set_channel = AsyncMock() diff --git a/zigpy_zigate/zigbee/application.py b/zigpy_zigate/zigbee/application.py index c99bb0f..8e85bbc 100644 --- a/zigpy_zigate/zigbee/application.py +++ b/zigpy_zigate/zigbee/application.py @@ -226,6 +226,10 @@ def __init__(self, application, ieee, nwk): model = 'ZiGate USB-DIN' self._model = '{} {}'.format(model, application.version) + @property + def is_initialized(self): + return True + @property def manufacturer(self): return "ZiGate"