nachonam
2d510bfe0d
Add camera platform to Freebox ( #88104 )
...
* Add Freebox cameras
* Apply suggestions from code review
add code corrections after PR review
Co-authored-by: Quentame <polletquentin74@me.com>
* Update base_class.py
* add some code syntax corrections add unit tests
* add unit tests
* add syntax changes
* Update homeassistant/components/freebox/router.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/router.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/base_class.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/router.py
Co-authored-by: Quentame <polletquentin74@me.com>
* clear code and add minor changes
* correct syntax error and check home granted access
* typing functions
* Update tests/components/freebox/conftest.py
don't needed, and will fix tests.
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
Rename _volume_micro variable
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
Use const not literal
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
set to true not needed
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
use _attr_supported_features instead _supported_features
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
overload the entity with command_flip property and set_flip not needed
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
Cameras does not default to False,
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
delete this function because is not needed
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
Co-authored-by: Quentame <polletquentin74@me.com>
* consts, rollback _command flip is protected var
* VALUE_NOT_SET does not exists anymore
* Use HOME_COMPATIBLE_PLATFORMS
* Rename FreeboxHomeBaseClass to FreeboxHomeEntity
* Update Freebox Home comment
* Use CATEGORY_TO_MODEL to set model attr of FreeboxHomeEntity
* Use Home API from the router
* Add SERVICE_FLIP const
* Use SERVICE_FLIP const
* Fix typo in HOME_COMPATIBLE_PLATFORMS
* fix somme code issues
* use SERVICE_FLIP (lost in merge)
* use _attr_device_info
* clear code
* HOME_COMPATIBLE_PLATFORMS is a list
* Update homeassistant/components/freebox/home_base.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/home_base.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/config_flow.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/home_base.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/home_base.py
Co-authored-by: Quentame <polletquentin74@me.com>
* clear config_flow permission
* Update homeassistant/components/freebox/home_base.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
Co-authored-by: Quentame <polletquentin74@me.com>
* add untested files to. coveragerc
* clear unused attributes
* add not tested file camera.py
* clear unusued const
* add extra_state_attributes
* Update .coveragerc
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
Co-authored-by: Quentame <polletquentin74@me.com>
* fetch _flip
* del flip service
* add device_info via_device
* Update .coveragerc
* Update .coveragerc
* Update .coveragerc
* Update .coveragerc
* Remove flip reference
* Fix issue on router without Home API
* Fix "Home access is not granted" log repeats every 30s
* Fix sensor device_info
---------
Co-authored-by: Quentame <polletquentin74@me.com>
2023-04-26 00:03:39 +02:00
epenet
01ee066163
Use DataRate unit and device class in freebox ( #83612 )
...
* Use DataRate unit and device class in freebox
* UnitOfTemperature
2022-12-09 13:32:46 +01:00
epenet
58b9785485
Improve entity type hints [f] ( #77143 )
2022-08-22 13:36:33 +02:00
Benoit Anastay
766523cf8c
Fix error with HDD temperature report in Freebox integration ( #74718 )
...
* Fix error whith HDD temperature report
There was a non handled error case, documented in issue https://github.com/home-assistant/core/issues/43812 back in 2020 and the fix wasn't applied
* Use get method instead of ignoring the sensor
* Update test values
Add idle state drive with unkown temp
* update Tests for system sensors api
* Fix booleans values
* Fix disk unique_id
There was a typo in the code
2022-07-08 14:22:31 -07:00
epenet
9fde84ab41
Remove freebox from mypy ignore list ( #65126 )
...
* Add type hints to freebox
* Remove freebox from mypy ignore list
* Adjust type hints
* Refactor FreeboxRouter setup/close
* Remove unnecessary assert
* Remove unused constant
* Rework unload routine
* Bring back close method
* Suppress NotOpenError
* Use async_on_unload on signal_device_new
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-03 10:01:41 +01:00
epenet
f3af0781f8
Add setup type hints [f-g] ( #63599 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-07 16:48:54 +01:00
epenet
eb27da3cd4
Use new SensorDeviceClass enum in freebox ( #61444 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-10 08:53:08 -05:00
Dave Lowper
892df608e9
Fix ZeroDivisionError on freebox/sensor ( #57077 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-28 09:30:06 +02:00
Robert Hillis
63646a19cc
Use DeviceInfo Class F-G ( #58255 )
2021-10-23 12:01:21 +02:00
epenet
8dfa628af0
Use DeviceInfo on components with via_device (A-G) ( #58210 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-22 12:12:19 +02:00
Marc Mueller
fbf812a845
Use EntityDescription - freebox ( #55675 )
...
* Use EntityDescription - freebox
* Remove default values
2021-09-03 22:33:26 +02:00
Erik Montnemery
6de6a5dc14
Move temperature conversions to sensor base class (3/8) ( #54469 )
...
* Move temperature conversions to entity base class (3/8)
* Fix FritzBox sensor
* Fix tests
2021-08-12 14:23:56 +02:00
Daniel Hjelseth Høyer
fbad453c89
Pylint 2.9.3 ( #52972 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-14 21:44:57 -07:00
Milan Meulemans
29d72714f3
Replace dict with DeviceInfo ( #49950 )
...
* Replace dict with DeviceInfo
* Clean up
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-02 00:37:19 +02:00
Ville Skyttä
631ab367e2
Fix typing.Any spelling ( #49673 )
2021-04-25 09:36:21 -10:00
Franck Nijhof
168b3c100c
Remove HomeAssistantType alias - Part 4 ( #49515 )
2021-04-21 12:18:42 +02:00
Erik Montnemery
339a56e434
Migrate integrations f-h to extend SensorEntity ( #48212 )
2021-03-22 19:45:17 +01:00
Marc Mueller
91df3fa904
Update typing 06 ( #48039 )
2021-03-17 23:49:01 +01:00
Erik Montnemery
af4d06b12e
Update integrations f-i to override extra_state_attributes() ( #47757 )
2021-03-11 16:57:47 +01:00
Quentame
ca54de095d
Add disk sensor to Freebox ( #46689 )
...
* Add disk sensor to Freebox
* Add debug logging into sensors
* Remove useless sensor[X] assignement in disk sensor
2021-03-02 21:23:02 +01:00
Quentame
13df452dd4
Fix Freebox call sensor when no call in history ( #40001 )
2020-09-13 01:13:57 +02:00
Quentame
01ba578016
Add missed call sensor to Freebox ( #36895 )
2020-06-30 12:55:46 -07:00
Quentame
19be4a5d6d
Refactor Freebox : add config flow + temperature sensor + signal dispatch ( #30334 )
...
* Add config flow to Freebox
* Add manufacturer in device_tracker info
* Add device_info to sensor + switch
* Add device_info: connections
* Add config_flow test + update .coveragerc
* Typing
* Add device_type icon
* Remove one error log
* Fix pylint
* Add myself as CODEOWNER
* Handle sync in one place
* Separate the Freebox[Router/Device/Sensor] from __init__.py
* Add link step to config flow
* Make temperature sensors auto-discovered
* Use device activity instead of reachablility for device_tracker
* Store token file in .storage
Depending on host if list of Freebox integration on the future without breaking change
* Remove IP sensors + add Freebox router as a device with attrs : IPs, conection type, uptime, version & serial
* Add sensor should_poll=False
* Test typing
* Handle devices with no name
* None is the default for data
* Fix comment
* Use config_entry.unique_id
* Add async_unload_entry with asyncio
* Add and use bunch of data size and rate related constants (#31781 )
* Review
* Remove useless "already_configured" error string
* Review : merge 2 device & 2 sensor classes
* Entities from platforms
* Fix unload + add device after setup + clean loggers
* async_add_entities True
* Review
* Use pathlib + refactor get_api
* device_tracker set + tests with CoroutineMock()
* Removing active & reachable from tracker attrs
* Review
* Fix pipeline
* typing
* typing
* typing
* Raise ConfigEntryNotReady when HttpRequestError at setup
* Review
* Multiple Freebox s
* Review: store sensors in router
* Freebox: a sensor story
2020-03-11 22:15:59 +01:00
Ville Skyttä
3e23a3a860
Add and use bunch of data size and rate related constants ( #31781 )
...
Also fix a few units to match the corresponding data.
2020-02-13 08:52:57 -08:00
Quentame
f72ba0c716
Add icons to Freebox sensors ( #30132 )
2019-12-23 09:37:41 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07:00
Fabian Affolter
127c55e0c1
Update file header ( #21023 )
...
* Update file header
* Update file header
* Update file header
* Update file header
* Update file header
* Fix lint issues
2019-02-13 21:21:14 +01:00
Paulus Schoutsen
e2d3c27e85
Embed all platforms into components ( #20677 )
...
* Consolidate all components with platforms
* Organize tests
* Fix more tests
* Fix Verisure tests
* one final test fix
* Add change
* Fix coverage
2019-02-02 07:13:16 -08:00