62 Commits

Author SHA1 Message Date
Robert Resch
96f84b2b99 Sort homeassistant json files (#155285) 2025-10-28 10:33:10 +01:00
Michael
cecdf553f3 Set integration type for nextcloud (#154709) 2025-10-17 23:24:52 +02:00
Norbert Rittel
4a556f89aa Add missing hyphen to "two-factor authentication" in nextcloud (#144448) 2025-05-08 10:58:16 +03:00
Norbert Rittel
36d42760a4 Fix capitalization in nextcloud entity names (#140856)
* Fix capitalization in `nextcloud` entity names

Use uppercase for abbreviations, sentence-case for words.

* Update test_sensor.ambr
2025-03-18 11:07:05 +02:00
Christopher Fenner
1579e90d58 Fix typos in strings.json files (#138601)
* fix codespell issues

* update nextcloud snapshots

* update weheat snapshots

* update waqi snapshots
2025-02-18 22:36:28 +01:00
Erik Montnemery
f83c8de8d3 Update signature of platforms' async_setup_entry (#138201) 2025-02-10 21:08:03 +01:00
Michael
7256575c09 Explicitly pass in the config_entry in Nextcloud coordinator init (#136774) 2025-01-29 01:26:20 +01:00
epenet
dd8f1800df Use new reauth_helpers in nextcloud (#128700) 2024-10-19 10:15:29 +02:00
Michael
ea04269c49 Improve test coverage for nextcloud (#123148)
* add first data driven tests

* remove unused mock

* test unique_id migration

* test errors during setup

* test error during data update

* test update entity

* system_versionis always available

* make use of snapshot_platform helper

* use parametrize test for coordinator update errors

* apply suggestions

* don't touch internals on coordinator tests

* rework to use async_get_or_create instead of mock_registry
2024-08-27 19:48:39 +02:00
Michael
844ccf461f Remove unnecessary config schema definitions (#123197) 2024-08-05 17:44:14 +02:00
MeIchthys
cfef09d653 Bump nextcloudmonitor to 1.5.1 (#120356) 2024-07-04 01:08:38 +02:00
Marc Mueller
44049c34f9 Use PEP 695 type alias for ConfigEntry types (#117632) 2024-05-17 15:42:58 +02:00
Michael
ec46d4d644 Store runtime data inside the config entry in Nextcloud (#116790) 2024-05-04 19:03:25 +02:00
Marc Mueller
988c71ecc5 Add empty line after module docstring [n-q] (#112702) 2024-03-08 15:04:07 +01:00
Jan-Philipp Benecke
3cfe346656 Remove list comprehension when adding entities in Nextcloud (#112429) 2024-03-05 20:44:50 +01:00
Joost Lekkerkerker
0cc1fd5e99 Add icon translations to Nextcloud (#111982) 2024-03-02 00:28:37 +01:00
Erik Montnemery
e0c1feb22c Migrate integrations n-r to generic flowhandler (#111864) 2024-02-29 20:09:01 +01:00
escoand
e7d5ae7ef6 Add Nextcloud update entity (#106690)
* add nextcloud update entity

* don't init update entity on older nextcloud versions

* ruff

* pass skipUpdate to module

* bump deps

* bump requirements

* Update homeassistant/components/nextcloud/update.py

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

* Update homeassistant/components/nextcloud/update.py

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

* bump requirements

* Update homeassistant/components/nextcloud/update.py

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

* Update homeassistant/components/nextcloud/update.py

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-01-30 23:01:26 +01:00
Erik Montnemery
0c2485bc03 Freeze integration entity descriptions (#105984)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
Aarni Koskela
706add4a57 Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
laurentriffard
33d144fe2d Set nextcloud integration sensors as numerical values (#103856) 2023-11-16 23:29:44 +01:00
Robert Resch
f7292d5b00 Add check that sensors don't have EntityCategory.CONFIG set (#101471) 2023-10-09 13:37:52 +02:00
epenet
18908740ca Fix typo in nextcloud strings (#101686) 2023-10-09 10:04:39 +02:00
Michael
d5adf33225 Address late review for Nextcloud (#99226) 2023-08-31 20:35:11 +02:00
Michael
1bd37612af Introduce more sensors to Nextcloud (#99155) 2023-08-27 20:50:27 +02:00
Michael
0ce9d21bea Rework to use list of entity descriptions in Nextcloud integration (#99150) 2023-08-27 20:18:55 +02:00
Michael
cc103ddbaa Split Owncloud CPU load in separate sensors (#99141)
* split cpu load values into own sensors

* apply suggestion
2023-08-27 19:34:58 +02:00
escoand
d21ee30ddf Extend Nextcloud integration (#94066) 2023-08-27 18:51:31 +02:00
Erik Montnemery
045c327928 Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Michael
db4c9c67a2 Do not set hass data before first coordinator refresh (#97343) 2023-08-02 08:29:00 +02:00
Joost Lekkerkerker
cb1f365482 Add entity translations to NextCloud (#96544)
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-18 18:07:32 +02:00
G Johansson
171ce747c1 Remove nextcloud YAML configuration (#93550) 2023-05-29 20:33:29 +02:00
Matthias Alphart
0b9fbb1800 Fix typo in Nextcloud YAML deprecation message (#92060) 2023-04-26 13:51:47 +02:00
Michael
cf0550f5c2 Add re-auth flow to nextcloud (#90472) 2023-03-29 21:46:08 +02:00
Michael
b881995efc Add verify ssl option to nextcloud (#90462)
add verify sssl option to config flow
2023-03-29 19:36:42 +02:00
Michael
e4bb339a1e Add device info to Nextcloud integration (#90328)
* add device_info

* use entry_id as identifier + device name

* use shorthand attributes

* remove model from device info

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

---------

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-28 12:43:00 +02:00
Michael
a361fba8f5 Bump nextcloudmonitor to 1.4.0 (#90372) 2023-03-28 00:48:14 +02:00
Michael
00ce757051 Apply late review comments from #89396 in Nextcloud (#90327) 2023-03-27 00:10:57 +02:00
Michael
45262c6114 Implement config flow for nextcloud (#89396)
* implement config flow

* add tests

* fix hassfest and requirements

* abort import on connection error

* add add_suggested_values_to_schema

* mock async_setup_entry

* revert code owner change

* fix try connect in config flow

* add device info

* allow multiple instances

* fix import in config flow

* remove custom scan interval from coordinator

* applay suggestions

* apply suggestions

* take over ownership from @meichthys

* cleanup import data before passing to user step

* apply suggestions to tests

* add untested files to .coveragerc
2023-03-26 21:14:17 +02:00
Michael
d25e394310 Implement data update coordinator for nextcloud (#89652)
* implement data update coordinator

* apply suggestions

* apply suggestions
2023-03-22 09:18:09 +01:00
epenet
2809a686be Remove duplicate code in nextcloud (#89681) 2023-03-14 12:14:29 +01:00
epenet
b620e5d8a6 Move nextcloud constants (#89679) 2023-03-14 09:51:03 +01:00
Erik Montnemery
1450b44c63 Sort manifests 7 (#87028) 2023-02-08 20:32:43 +01:00
Dusan Cervenka
bce273660d Fix nextcloud 'ncm' referenced before assignment (#80711)
* #80673 Fix 'ncm' referenced before assignmen

 UnboundLocalError: local variable 'ncm' referenced before assignmen

Signed-off-by: Dusan Cervenka <cervenka.dusan@gmail.com>

* #80673 changes based on review

Signed-off-by: Dusan Cervenka <cervenka.dusan@gmail.com>

* Changes made based on review

Signed-off-by: Dusan Cervenka <cervenka.dusan@gmail.com>

Signed-off-by: Dusan Cervenka <cervenka.dusan@gmail.com>
2022-10-21 08:26:14 +02:00
Flemming Sørvollen Skaret
c7b56f4079 Clean duplicate nextcloud sensor (#79900)
Update __init__.py

Removed duplicate of  "nextcloud_database_version"
2022-10-10 14:12:37 +02:00
epenet
420733a064 Improve entity type hints [n] (#77824) 2022-09-05 07:53:55 -05:00
epenet
80b6195505 Add sensor setup type hints [m-n] (#63314)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:09:36 +01:00
epenet
33e4251606 Add binary_sensor setup type hints [h-n] (#63269)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 11:32:26 +01:00
epenet
b6909feb8b Add init type hints [n-o] (#63190)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-01 13:39:38 -08:00
Sebastian Lövdahl
d18f1cc872 Use Platform constants all over the place 2/3 (#62953) 2021-12-28 21:23:07 +01:00