Skip to content

Commit

Permalink
MQTT Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyeao committed Mar 7, 2024
1 parent 01a0a4b commit 141de3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ private async Task PublishConfigurations(MeetingUpdate meetingUpdate, AppSetting
foreach (var sensor in sensorNames)
{
string sensorKey = $"{deviceid}_{sensor}";
string sensorName = $"{deviceid}_{sensor}".ToLower().Replace(" ", "_");
string sensorName = $"{sensor}".ToLower().Replace(" ", "_");
string deviceClass = DetermineDeviceClass(sensor);
string icon = DetermineIcon(sensor, meetingUpdate.MeetingState);
string stateValue = GetStateValue(sensor, meetingUpdate);
Expand Down Expand Up @@ -974,7 +974,7 @@ private async Task PublishConfigurations(MeetingUpdate meetingUpdate, AppSetting
{
var sensorConfig = new
{
name = $"{sensorName} {deviceid}",
name = sensorName,
unique_id = uniqueId,
device = deviceInfo,
icon = icon,
Expand Down
4 changes: 2 additions & 2 deletions TEAMS2HA.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<TargetFramework>net7.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<AssemblyVersion>1.1.0.337</AssemblyVersion>
<FileVersion>1.1.0.337</FileVersion>
<AssemblyVersion>1.1.0.340</AssemblyVersion>
<FileVersion>1.1.0.340</FileVersion>
<ApplicationIcon>Assets\Square150x150Logo.scale-200.ico</ApplicationIcon>
<Title>Teams2HA</Title>
<PackageIcon>Square150x150Logo.scale-200.png</PackageIcon>
Expand Down

0 comments on commit 141de3a

Please sign in to comment.