diff --git a/caddy/services/vscode-server.caddy b/caddy/services/vscode-server.caddy index ed87131..947f383 100644 --- a/caddy/services/vscode-server.caddy +++ b/caddy/services/vscode-server.caddy @@ -1,6 +1,11 @@ # External # Internal -code-server.mini.docker.local { +code-server.docker.local { reverse_proxy 192.168.178.230:8443 -} \ No newline at end of file +} + + +code-server.monitoring.local { + reverse_proxy 192.168.178.233:8443 +} diff --git a/homeassistant/homeassistant/config/custom_components/hacs/validate/README.md b/homeassistant/homeassistant/config/custom_components/hacs/validate/README.md new file mode 100644 index 0000000..08e2bc4 --- /dev/null +++ b/homeassistant/homeassistant/config/custom_components/hacs/validate/README.md @@ -0,0 +1,30 @@ +# Repository validation + +This is where the validation rules that run against the various repository categories live. + +## Structure + +- There is one file pr. rule. +- All rule needs tests to verify every possible outcome for the rule. +- It's better with multiple files than a big rule. +- All rules uses `ActionValidationBase` as the base class. +- Only use `validate` or `async_validate` methods to define validation rules. +- If a rule should fail, raise `ValidationException` with the failure message. + + +## Example + +```python +from .base import ( + ActionValidationBase, + ValidationBase, + ValidationException, +) + +class SuperAwesomeRepository(ActionValidationBase): + category = "integration" + + async def async_validate(self): + if self.repository != "super-awesome": + raise ValidationException("The repository is not super-awesome") +``` \ No newline at end of file