Commit graph

31 commits

Author SHA1 Message Date
starkillerOG
98c9edc00c
Netgear cleanup ()
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-09-14 12:06:40 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry ()
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
starkillerOG
3a9caeffe5
Reolink late review comments ()
late review comments
2023-02-13 11:47:39 +01:00
Franck Nijhof
baef267f33
String formatting and max line length - Part 3 () 2022-12-22 13:35:47 +01:00
starkillerOG
d9b58e5ef1
Netgear add router switches () 2022-09-25 23:30:17 -04:00
Marc Mueller
5a046ae7be
Fix implicit Optional [a-n] () 2022-08-13 18:46:34 +02:00
starkillerOG
db03c273f1
Netgear skip devices withouth mac ()
skip devices withouth mac
2022-08-13 15:17:49 +02:00
Marc Mueller
48c5aab5ee
Fix netgear method return type annotation () 2022-06-30 08:16:05 +02:00
starkillerOG
79fdb0d847
Netgear add update entity () 2022-06-29 11:43:51 +02:00
starkillerOG
f2809262d5
Netgear add CPU and Memory utilization sensors () 2022-06-29 11:28:46 +02:00
starkillerOG
ef76073d83
Add Netgear ethernet link status () 2022-06-28 14:31:15 -07:00
starkillerOG
4bc04383d1
Ensure netgear devices are tracked with one enabled config entry ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-08 10:52:01 +02:00
starkillerOG
9514f491f0
Add netgear speed test sensor ()
* implement speed_test

* fix units

* restore last speedtest result

* fix import

* fix restore state is None

* fix styling

* fix mypy

* Use newer notation

* correct unit

* fix typing

* fix pylint

* fix issort

* use RestoreSensor

* fix import

* fix sensor restore

* do not extend SensorEntity

* fix mypy

* fix typing 2
2022-05-25 08:38:47 +02:00
starkillerOG
fad766322c
Do not track Netgear AP or Bridge devices () 2022-05-23 13:48:44 +02:00
Martin Hjelmare
d299915c1a
Fix netgear typing () 2022-02-26 14:00:33 -08:00
starkillerOG
714daebfb9
Netgear add reboot button ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-02-17 09:41:21 +01:00
starkillerOG
f9c81dd00b
Lock Netgear api during setup () 2022-02-08 02:50:38 +01:00
starkillerOG
d81139377c
Add Netgear allow/block switch ()
* add allow/block switch

* keep api private

* typing

* change default to None

* retain None state

* change default to None
2022-02-07 12:00:02 +01:00
starkillerOG
5519888dc1
Netgear add traffic sensors ()
* add sensors

* use entity discription

* use lambda functions

* use seperate coordinators

* styling

* revieuw comments

* set proper default

* move api lock

* fix styling

* Update homeassistant/components/netgear/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/netgear/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* use coordinator data

* fix styling

* fix typing

* move typing

* fix lock

* Update homeassistant/components/netgear/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/netgear/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-04 18:36:56 +01:00
starkillerOG
69a004a2f6
Netgear coordinator ()
* implement coordinator

* fix styling

* fix async_uload_entry

* use async_config_entry_first_refresh

* use const

* fix black

* use KEY_ROUTER

* review comments

* fix black

* ensure the coordinator keeps updating

* fix flake8

* rework setup of entities using coordinator

* styling

* check for failed get_info call

* fix

* fix setup of entities

* simplify

* do not set unique_id and device_info on scanner entity

* Update homeassistant/components/netgear/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/netgear/device_tracker.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/netgear/router.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* use entry_id instead of unique_id

* unused import

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-03 12:28:04 +01:00
starkillerOG
37caa22a36
Netgear try all ports ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-18 11:02:43 -08:00
starkillerOG
1d24fb7ad9
Fix Netgear used method version ()
* Netgear fix used method version

* add error message

* fix imports

* fix black

* fix error mess

* rename const
2022-01-09 11:27:42 +01:00
starkillerOG
3a7a4e8ffc
Fix Netgear init error on orbi models ()
* fix Netgear init error on orbi models

* Update sensor.py
2021-11-17 11:49:12 +01:00
Marvin Wichmann
c5b5c8c3ce
Remove deprecated usages of HomeAssistantType () 2021-11-06 19:48:02 +01:00
epenet
176ed4f7ba
Use DeviceInfo on components with via_device (I-T) ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-22 12:31:12 +02:00
starkillerOG
04f51e599a
Fix netgear NoneType and discovery () 2021-10-18 12:01:58 +02:00
starkillerOG
1fbc94f56d
Add Netgear ssid and conn_ap_mac sensors ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-11 13:08:56 +02:00
starkillerOG
830e2bc47a
Netgear fix port and device model beeing overwritten ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-08 09:03:21 -07:00
starkillerOG
3e89ebb1cb
Remove Netgear tracker link_rate check on Orbi ()
* Netgear tracker: remove link_rate check on Orbi

* fix debug message

* Add orbi models

* check start of model in V2 check

* fix black
2021-10-06 13:30:13 +02:00
Marc Mueller
565a9fea6b
Import Callable from collections.abc (2) () 2021-09-29 14:06:51 +02:00
starkillerOG
5f86388f1c
Netgear config flow ()
* Original work from Quentame

* Small adjustments

* Add properties and method_version

* fix unknown name

* add consider_home functionality

* fix typo

* fix key

* swao setup order

* use formatted mac

* add tracked_list option

* add options flow

* add config flow

* add config flow

* clean up registries

* only remove if no other integration has that device

* tracked_list formatting

* convert tracked list

* add import

* move imports

* use new tracked list on update

* use update_device instead of remove

* add strings

* initialize already known devices

* Update router.py

* Update router.py

* Update router.py

* small fixes

* styling

* fix typing

* fix spelling

* Update router.py

* get model of router

* add router device info

* fix api

* add listeners

* update router device info

* remove method version option

* Update __init__.py

* fix styling

* ignore typing

* remove typing

* fix mypy config

* Update mypy.ini

* add options flow tests

* Update .coveragerc

* fix styling

* Update homeassistant/components/netgear/__init__.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/netgear/__init__.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/netgear/__init__.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/netgear/config_flow.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/netgear/router.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* add ConfigEntryNotReady

* Update router.py

* use entry.async_on_unload

* Update homeassistant/components/netgear/device_tracker.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* use cv.ensure_list_csv

* add hostname property

* Update device_tracker.py

* fix typo

* fix isort

* add myself to codeowners

* clean config flow

* further clean config flow

* deprecate old netgear discovery

* split out _async_remove_untracked_registries

* Update homeassistant/components/netgear/config_flow.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/netgear/config_flow.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* cleanup

* fix rename

* fix typo

* remove URL option

* fixes

* add sensor platform

* fixes

* fix removing multiple entities

* remove extra attributes

* initialize sensors correctly

* extra sensors disabled by default

* fix styling and unused imports

* fix tests

* Update .coveragerc

* fix requirements

* remove tracked list

* remove tracked registry editing

* fix styling

* fix discovery test

* simplify unload

* Update homeassistant/components/netgear/router.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* add typing

Co-authored-by: J. Nick Koston <nick@koston.org>

* add typing

Co-authored-by: J. Nick Koston <nick@koston.org>

* add typing

Co-authored-by: J. Nick Koston <nick@koston.org>

* condense NetgearSensorEntities

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/netgear/router.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/netgear/router.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/netgear/router.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/netgear/router.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* add typing

* styling

* add typing

* use ForwardRefrence for typing

* Update homeassistant/components/netgear/device_tracker.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* add typing

* Apply suggestions from code review

Thanks!

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* process review comments

* fix styling

* fix devicename not available on all models

* ensure DeviceName is not needed

* Update homeassistant/components/netgear/config_flow.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/netgear/config_flow.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update __init__.py

* fix styling

Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-09-13 18:18:21 +02:00