Merge pull request #1683 from netalertx/next_release

Next release
This commit is contained in:
Jokob @NetAlertX
2026-06-21 08:16:08 +10:00
committed by GitHub
4 changed files with 41 additions and 5 deletions

View File

@@ -61,6 +61,30 @@ p.hero-description {
object-fit: contain;
}
/* Mobile */
@media (max-width: 768px) {
.hero-wrapper {
flex-direction: column-reverse; /* image first, text second */
align-items: center;
}
.hero-content {
max-width: 100%;
text-align: center;
}
.hero-image {
max-width: 100%;
margin-bottom: 1.5rem;
}
.hero-logo-crisp {
max-width: 600px;
width: 100%;
height: auto;
}
}
/* --- PROMO CARDS --- */
.promo-card-wrapper {
display: flex;

View File

@@ -156,6 +156,13 @@ class sensor_config:
self.state_topic = f'{topic_root}/{self.sensorType}/{self.deviceId}/state'
self.unique_id = f'{self.deviceId}_sensor_{self.sensorName}'
if self.mac != "":
connections_snippet = [
["mac", self.mac]
]
else:
connections_snippet = []
# Update the message dictionary, expanding it without overwriting
self.message.update({
"name": self.sensorName,
@@ -165,7 +172,8 @@ class sensor_config:
"device": {
"identifiers": [f"{self.deviceId}_sensor"],
"manufacturer": "NetAlertX",
"name": self.deviceName
"name": self.deviceName,
"connections": connections_snippet
},
"icon": f'mdi:{self.icon}'
})

View File

@@ -48,6 +48,8 @@ Enable **Generate Fake MAC** when the API does not expose MAC addresses (e.g. re
### Example: OPNsense Dnsmasq API
See the [OPNsense configuration guide](https://docs.netalertx.com/REST_IMPORT) for details.
**Response:**
```json
{

View File

@@ -44,9 +44,6 @@ nav:
- Getting started:
- Subnets: SUBNETS.md
- Enable Plugins: PLUGINS.md
- Pi-hole Guide: PIHOLE_GUIDE.md
- Home Assistant: HOME_ASSISTANT.md
- Emails: SMTP.md
- Backups: BACKUPS.md
- Security Features: SECURITY_FEATURES.md
- Security Considerations: SECURITY.md
@@ -60,7 +57,6 @@ nav:
- Performance: PERFORMANCE.md
- Reverse DNS: REVERSE_DNS.md
- Reverse Proxy: REVERSE_PROXY.md
- Webhooks (n8n): WEBHOOK_N8N.md
- Workflows: WORKFLOWS.md
- Workflow Examples: WORKFLOW_EXAMPLES.md
- Docker Swarm: DOCKER_SWARM.md
@@ -85,6 +81,12 @@ nav:
- Icons and Topology:
- Icons: ICONS.md
- Network Topology: NETWORK_TREE.md
- Other guides:
- Pi-hole Guide: PIHOLE_GUIDE.md
- Home Assistant: HOME_ASSISTANT.md
- Emails: SMTP.md
- Rest import: REST_IMPORT.md
- Webhooks (n8n): WEBHOOK_N8N.md
- Troubleshooting:
- General Tips: DEBUG_TIPS.md
- Common Issues: COMMON_ISSUES.md