From e509e4e08c619df1bf1a5155d960c8b6e4e54bb6 Mon Sep 17 00:00:00 2001 From: Juan Pablo de Castro Date: Fri, 10 Nov 2023 21:13:11 +0100 Subject: [PATCH] It's working for F6645P as well!! Fixes #11 --- README.md | 3 ++- custom_components/zte_tracker/const.py | 2 +- custom_components/zte_tracker/manifest.json | 2 +- custom_components/zte_tracker/zteclient/__init__.py | 2 +- custom_components/zte_tracker/zteclient/_version.py | 2 +- custom_components/zte_tracker/zteclient/zte_client.py | 3 ++- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e518d96..8dac72f 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ Component to integrate some ZTE routers as a device trackers in home assistant. | Name | Model Param | | ------------- |:-------------: | | ZTE F6640 | F6640 | +| ZTE F6645P | F6640 | | ZTE H288A | H288A | | ZTE H169A | H169A | | ZTE H388X | H388X | @@ -67,4 +68,4 @@ For more information about the device_tracker parameters visit the official [Hom ## Contributors -- Thanks to @gselivanof for H288A, H169A models support, @TrinTragula for H388X verification, @kvshino for H2640 verification. +- Thanks to @gselivanof for H288A, H169A models support, @TrinTragula for H388X verification, @kvshino for H2640 verification, @dapuzz for G6645P verification. diff --git a/custom_components/zte_tracker/const.py b/custom_components/zte_tracker/const.py index 06e96df..f46e7d1 100644 --- a/custom_components/zte_tracker/const.py +++ b/custom_components/zte_tracker/const.py @@ -5,7 +5,7 @@ DOMAIN = "zte_tracker" DOMAIN_DATA = "{}_data".format(DOMAIN) -VERSION = "1.3.5" +VERSION = "1.3.6" PLATFORMS = ["sensor", "device_tracker"] ISSUE_URL = "https://github.com/juacas/zte_tracker/issues" DEFAULT_HOST = '192.168.1.1' diff --git a/custom_components/zte_tracker/manifest.json b/custom_components/zte_tracker/manifest.json index a6b7022..1ad4ab0 100644 --- a/custom_components/zte_tracker/manifest.json +++ b/custom_components/zte_tracker/manifest.json @@ -6,5 +6,5 @@ "iot_class": "local_polling", "issue_tracker": "https://github.com/juacas/zte_tracker/issues", "requirements": [], - "version": "v1.3.5" + "version": "v1.3.6" } diff --git a/custom_components/zte_tracker/zteclient/__init__.py b/custom_components/zte_tracker/zteclient/__init__.py index b297c45..17ba6f9 100644 --- a/custom_components/zte_tracker/zteclient/__init__.py +++ b/custom_components/zte_tracker/zteclient/__init__.py @@ -1,7 +1,7 @@ """ZTE client""" __author__ = "Juan Pablo de Castro (juan.pablo.de.castro@gmail.com)" -__version__ = "1.2.0" +__version__ = "1.2.2" __copyright__ = "Copyright (c) 2022 Juan Pablo de Castro" # Use of this source code is governed by the MIT license. __license__ = "MIT" diff --git a/custom_components/zte_tracker/zteclient/_version.py b/custom_components/zte_tracker/zteclient/_version.py index c300312..3e5eec2 100644 --- a/custom_components/zte_tracker/zteclient/_version.py +++ b/custom_components/zte_tracker/zteclient/_version.py @@ -1,2 +1,2 @@ -__version__ = '1.2.1' +__version__ = '1.2.2' __releasedate__ = '20230705' diff --git a/custom_components/zte_tracker/zteclient/zte_client.py b/custom_components/zte_tracker/zteclient/zte_client.py index 50d8354..094c1bf 100644 --- a/custom_components/zte_tracker/zteclient/zte_client.py +++ b/custom_components/zte_tracker/zteclient/zte_client.py @@ -27,7 +27,8 @@ _MODELS['H388X'] = _MODELS['H288A'] # Synonym H2640 is like H388X _MODELS['H2640'] = _MODELS['H288A'] - +# Synonym F6645P is like F6640 +_MODELS['F6645P'] = _MODELS['F6640'] class zteClient: def __init__(self, host, username, password,model): """Initialize the client."""